Go to Post Breaking a rule just because you think it is meant to be broken is not good advice. - Andy Baker [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 18-01-2005, 11:16
Anton's Avatar
Anton Anton is offline
Anton Povzner
#1581 (Element)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Israel
Posts: 51
Anton can only hope to improve
A little question about the autonomous mode

In the default code the autonomous mode depends on a variable(autonomous_mode). Logically, it should turn the autonomous mode on or off.
I'd really like to know if there is a built-in timer( to decide if it's autonomous mode or not), or should I include my own?
also, there should be some way to activate the autonomous mode(and the robot itself, too) after the robot was turned on(after all, the team is supposed to be away from the robot, so we can't make it start right after it is turned on). What i'd like to know is do I need to devise my own way or is there on in the default mode?
  #2   Spotlight this post!  
Unread 18-01-2005, 11:26
JMac JMac is offline
Registered User
AKA: Jen
#0042
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: New Hamshire
Posts: 7
JMac is on a distinguished road
Re: A little question about the autonomous mode

I've been working on the Edubot to get some experience with this, and that is entirely autonomous. When the robot turns on, if the code is loaded correctly, it should automatically start running the autonomous program, as far as I'm aware. That doesn't involve anything special. (I think... someone verify?) I don't know how the robot changes from autonomous to regular mode.

If you want to do a timer, I found a white-paper on innovationfirst.com, i believe, and it was very helpful. It's kind of complicated, or at least it was to me, but I'm new at all this.
  #3   Spotlight this post!  
Unread 18-01-2005, 11:38
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,861
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: A little question about the autonomous mode

Quote:
Originally Posted by Anton
What i'd like to know is do I need to devise my own way or is there on in the default mode?
The way many teams do it is to use the Competition Port and set the Autonomous Mode by a flip of a switch that way. That's the way it happens at the competition. References for this are in the OI Reference Guide.:
http://www.ifirobotics.com/docs/oi-r...c0-1-12-05.pdf, see page 11.

You can also easily do it by having your program check a switch on the OI (like the trigger on a joystick) to turn the autonomous bit on when it is pressed.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #4   Spotlight this post!  
Unread 18-01-2005, 11:49
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: A little question about the autonomous mode

The autonomous_mode variable is controlled by the part of the default code which communicates with the master CPU. It reflects the state of one of the pins on the competition port on the OI. Your software should never try to change its value. The FIRST field hardware will take care of it for you.

The usual way to enter autonomous mode for testing is to physically connect a switch to the appropriate pins on the competition port. See the Competiton Port Pinout Guide documentation for details.
  #5   Spotlight this post!  
Unread 18-01-2005, 14:08
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: A little question about the autonomous mode

Quote:
Originally Posted by Mark McLeod
You can also easily do it by having your program check a switch on the OI (like the trigger on a joystick) to turn the autonomous bit on when it is pressed.
Last year I programmed a switch on the OI (not the dongle) to send the robot into autonomous mode. The drivers used this during the Thursday practice rounds so we could test more than 2 routines per round. This was quite useful since we had over a dozen auto routines and we wanted to test them on the actual field (which is always different than any other field).
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"
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
Wolrd Triple Play Autonomous Mode (WAM) Standards Natchez General Forum 3 11-01-2005 15:52
Future of Autonomous Mode FadyS. Programming 41 24-05-2004 19:45
Initializing autonomous mode Mr. Lim Programming 7 02-02-2004 07:26
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11


All times are GMT -5. The time now is 22:44.

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