Go to Post Obviously, really large issues need to be addressed, and if you feel there is a huge problem, by all means, go ahead, if you can be polite, productive, and graciously professional, address it. - Amanda Aldridge [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-02-2005, 00:15
chippermonky chippermonky is offline
Registered User
#0604
 
Join Date: Jan 2005
Location: san jose ca
Posts: 5
chippermonky is an unknown quantity at this point
a simple autonomous mode question

Well I went digging through the forums which went very indepth with the autonomous mode, but right now I have a very simple question:

How (and in compliant with the rules) am I suppose to go in and out of autonomous mode. Right now, my ideal robot would be one that starts in the "user" mode, and on the press of a button, enters autonomous mode, does whatever it needs to do, and exits autonomous mode after a second press of the button.

Sorry, our team is short on time. I've looked throughout the forums and manuals and couldn't find out how. Thanks in advance.
  #2   Spotlight this post!  
Unread 18-02-2005, 00:18
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: a simple autonomous mode question

FIRST sets autonomous mode automatically at the start of your match via the Competition port on the OI. Assuming your code is in the right place, everything should be taken care of automatically.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
  #3   Spotlight this post!  
Unread 18-02-2005, 00:38
the_undefined's Avatar
the_undefined the_undefined is offline
German FES
AKA: Felix Geisendörfer
#1648 (Gearbox Gangstas)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Germany
Posts: 77
the_undefined has a spectacular aura aboutthe_undefined has a spectacular aura about
Re: a simple autonomous mode question

I think what he means with right place is this are of your user_routines_fast.h file. Just call your autonmous function from here and you should be fine.

Bye

Felix

Code:
void User_Autonomous_Code(void)
{
  /* Initialize all PWMs and Relays when entering Autonomous mode, or else it
     will be stuck with the last values mapped from the joysticks.  Remember, 
     even when Disabled it is reading inputs from the Operator Interface. 
  */
    pwm01 = pwm02 = pwm03 = pwm04 = pwm05 = pwm06 = pwm07 = pwm08 = 127;
    pwm09 = pwm10 = pwm11 = pwm12 = pwm13 = pwm14 = pwm15 = pwm16 = 127;
    relay1_fwd = relay1_rev = relay2_fwd = relay2_rev = 0;
    relay3_fwd = relay3_rev = relay4_fwd = relay4_rev = 0;
    relay5_fwd = relay5_rev = relay6_fwd = relay6_rev = 0;
    relay7_fwd = relay7_rev = relay8_fwd = relay8_rev = 0;

  while (autonomous_mode)   /* DO NOT CHANGE! */
  {
    if (statusflag.NEW_SPI_DATA)      /* 26.2ms loop area */
    {
        Getdata(&rxdata);   /* DO NOT DELETE, or you will be stuck here forever! */

        /* Add your own autonomous code here. */

        //robot_control();

        Generate_Pwms(pwm13,pwm14,pwm15,pwm16);

        Putdata(&txdata);   /* DO NOT DELETE, or you will get no PWM outputs! */
    }
  }
}
  #4   Spotlight this post!  
Unread 18-02-2005, 01:54
chippermonky chippermonky is offline
Registered User
#0604
 
Join Date: Jan 2005
Location: san jose ca
Posts: 5
chippermonky is an unknown quantity at this point
Re: a simple autonomous mode question

Thank you both a ton, this clears a lot up for me. Good luck at competition.
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
Where to insert code Autonomous mode caderader Programming 5 18-02-2005 16:49
How do I enter the Autonomous mode? CompMaster Programming 5 17-02-2005 19:12
Receiving info from OI to select autonomous mode Mr. Lim Programming 21 17-02-2005 00:56
EDU robot autonomous mode dmellich Programming 2 17-03-2004 14:54
Autonomous mode Tyler Olds General Forum 30 22-02-2004 14:31


All times are GMT -5. The time now is 19:16.

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