Go to Post Successful teams - in almost any aspect of life (i.e. not just robotics) - don't make excuses and assign blame when something goes wrong. They improvise. They adapt. They overcome. They correct the problem and move on. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-01-2003, 15:51
powercat powercat is offline
Registered User
no team
 
Join Date: Jan 2003
Location: Kansas
Posts: 14
powercat is an unknown quantity at this point
How will Autonomous mode be started

Greetings,
Am helping out on the programming a bit.
How will autonomous mode be initiated ?
Will a signal automatically be sent to the robot from the OI ? Or are we suppose to program a button ?

thanks.
  #2   Spotlight this post!  
Unread 27-01-2003, 15:53
virusmirusne virusmirusne is offline
Registered User
#1083 (The Crew)
 
Join Date: Jan 2003
Location: Orlando, Florida
Posts: 23
virusmirusne is an unknown quantity at this point
Send a message via AIM to virusmirusne
PB_mode... a donle in the competition port deal of the operating interface... assuming you included the PB_mode variable in your code, or you copy and pasted someone else's code that includes it... You should be set... I would like to know if it's cool to reuse bits of the PB_mode variable.
  #3   Spotlight this post!  
Unread 27-01-2003, 16:29
powercat powercat is offline
Registered User
no team
 
Join Date: Jan 2003
Location: Kansas
Posts: 14
powercat is an unknown quantity at this point
how to simulate this mode

Greetings,
how do you simulate the autonomous mode bit being set ? I need this to test
the autonomous mode code .

thanks
  #4   Spotlight this post!  
Unread 27-01-2003, 16:43
Goya Goya is offline
Registered User
#0019 (Big Red)
 
Join Date: Jan 2003
Location: Greenwich, CT
Posts: 35
Goya is an unknown quantity at this point
Send a message via AIM to Goya
Depends -

In the real event, the operator interface will be connected to a FIRST interface via the Competition port. All inputs, digital or analog, will be 127 and 0, respectively.

(Please search for more information on the inputs during autonomous mode in these forums. There is a wealth of information here.)

Also, the auton_mode bit, a bit of the PB_mode byte is sent to the Robot Controller with a value of 1. This byte and bit is defined in the default code.

(Check it out at http://www.innovationfirst.com/firstrobotics)

To tell when autonomous mode has completed, auton_mode will become 0. You can also tell by the (possible) change of values on the Operator Interface inputs.

(This is possible if and only if the driver changes the values on the Operator Interface after the autonomous mode has completed. This is an advanced tactic that some programmers will use to allow the robot to continue in autonomous mode, if they choose to do so. )

In practice, you can use a custom made dongle to simulate the change in the auton_mode bit in the Competition Port.

(This dongle can be found at http://www.innovationfirst.com)

Hope this helps,
  #5   Spotlight this post!  
Unread 27-01-2003, 22:29
FotoPlasma FotoPlasma is offline
\: |
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: San Jose
Posts: 1,900
FotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond repute
Send a message via AIM to FotoPlasma
To make a switch to turn on autonomous mode, all you have to do is put a switch between pins 5 (autonomous mode pin) and 8 (GND), on the 15-pin competition port.

As far as I can tell, the physical switch connection changes bit6 of the PB_Mode byte, both of which are defined in the default 2003 code, from a 0 (open, automous mode off) to a 1 (closed, autonomous mode on).

If I'm wrong, please correct me.
__________________
I played hacky sack with Andy Baker.

2001-2004: Team 258, The Sea Dawgs
2005: Team 1693, The Robo Lobos
  #6   Spotlight this post!  
Unread 28-01-2003, 08:51
EniJenni EniJenni is offline
Registered User
#0825
 
Join Date: Jan 2003
Location: Southwest Virginia Governor's School
Posts: 3
EniJenni is an unknown quantity at this point
If controls will read 127, then can you program the robot to do autonomous mode if the controllers are in neutral? Or will this not be an option? Like right now, we have it programmed to do our autonomous mode when the joysticks are not being touched. Will this work?

Thanks a bunch!

Jenni
  #7   Spotlight this post!  
Unread 28-01-2003, 09:55
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
This is all kind of overkill. My team programmer wrote a few lines of code that run our auton code when he pushes the joystick trigger. For testing purposes this would be fine
and we could probably levae it that way, triggers don't get used that mhc. anyway, that is much simpler (and safer) then jumping pins on hte competition port. Enjoy!

Matt Krass
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #8   Spotlight this post!  
Unread 28-01-2003, 10:52
powercat powercat is offline
Registered User
no team
 
Join Date: Jan 2003
Location: Kansas
Posts: 14
powercat is an unknown quantity at this point
just be careful programming. It would
be quite undesired to be into the
user control period and have the operator accidentally push the joystick button and cause execution of the autonomous code yet again.
  #9   Spotlight this post!  
Unread 28-01-2003, 19:23
Stephanie Stephanie is offline
Stew da Baker
AKA: AKA: Steppie86
no team
 
Join Date: Dec 2001
Location: San Jose, CA
Posts: 266
Stephanie has a spectacular aura aboutStephanie has a spectacular aura aboutStephanie has a spectacular aura about
Send a message via AIM to Stephanie
autonomous mode tips

if you look in the beginning of the main program loop, you will see an if statement that uses the auton_mode variable. this is what will do the switch between main and autonomous mode. the only way you can change to autonomous mode yourself without the competition port is by setting your team number to 0. i have myself done something else to test autonomous mode. here is the code i have used for this:

to be placed in main program:
if P1_sw_top = 1 &~ 0 then run 2

to be placed in autonomous mode:
if p1_sw_top = 0 &~ 1 then run 1

hope this helps
  #10   Spotlight this post!  
Unread 28-01-2003, 19:28
imjustmatthew's Avatar
imjustmatthew imjustmatthew is offline
Registered User
#0638 (Operation Oxidation)
 
Join Date: Jan 2003
Location: Richmond, VA
Posts: 19
imjustmatthew is an unknown quantity at this point
Send a message via AIM to imjustmatthew Send a message via Yahoo to imjustmatthew
Some rumor

I have heard (but not tried) setting the team number to 0 on the OI will initiate autonomous mode. I haven't tried it, but it seems it came from an offical place...
__________________
Matthew Roy

"We propose to decompose the competition."
  #11   Spotlight this post!  
Unread 30-01-2003, 08:53
Jeff Waegelin's Avatar
Jeff Waegelin Jeff Waegelin is offline
El Jefe de 148
AKA: Midwest Refugee
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Aug 2001
Rookie Year: 2001
Location: Greenville, TX
Posts: 3,132
Jeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond repute
Re: Some rumor

Quote:
Originally posted by imjustmatthew
I have heard (but not tried) setting the team number to 0 on the OI will initiate autonomous mode. I haven't tried it, but it seems it came from an offical place...
Yes, that is true, but it seems like it would be easier to program a trigger button or make an autonomous mode dongle than to be constantly changing dip switches. We made a dongle, and are very satisfied with how it works. It's much easier to use, and it has a handy disable switch, too.
__________________
Jeff Waegelin
Mechanical Engineer, Innovation First Labs
Lead Engineer, Team 148 - The Robowranglers
  #12   Spotlight this post!  
Unread 30-01-2003, 16:46
mjt902 mjt902 is offline
Registered User
#0902
 
Join Date: Apr 2002
Location: Heritage High School
Posts: 31
mjt902 is an unknown quantity at this point
Our team is planning on (or accidentally doing) waiting till the last minute for stuff (see my signature). i'm a little worried about auton_mode. the code i have set up (but of course not tried yet) is:
if auton_mode = 1 then GOSUB AUTONMODE
where the sub AUTONMODE will have different programs that i can specify before each match. will this do what i want it to do or not??
__________________
Top Ten Reasons to Procrastinate:
1.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming Autonomous mode Jared Stofflett Programming 3 11-11-2003 09:32
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11
Autonomous mode AntmanIV General Forum 1 17-02-2003 13:30
autonomous mode timer Don Programming 6 09-02-2003 22:16
autonomous mode? bigwalt Technical Discussion 1 21-01-2003 01:14


All times are GMT -5. The time now is 04:30.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi