Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Autonomous Mode (http://www.chiefdelphi.com/forums/showthread.php?t=44082)

EricWilliams 15-02-2006 16:42

Autonomous Mode
 
How many times is User_Autonomous_Code called? (Please say only once :ahh: )

kaszeta 15-02-2006 16:48

Re: Autonomous Mode
 
Quote:

Originally Posted by Ewilliams2006
How many times is User_Autonomous_Code called? (Please say only once :ahh: )

Look in main.c. It's called every time that (statusflag.NEW_SPI_DATA) is set and autonomous mode is active (i.e. nominally every 26.2 milliseconds).

ida_noeman 15-02-2006 17:09

Re: Autonomous Mode
 
Quote:

Originally Posted by kaszeta
(i.e. nominally every 26.2 milliseconds).

Well, actually, if you look in user_routines_fast.c, you will see "while(autonomous_mode)". This means that it will only call User_Autonomous_Code() once, and will keep looping until you disable autonomous.

kaszeta 15-02-2006 17:14

Re: Autonomous Mode
 
Quote:

Originally Posted by ida_noeman
Well, actually, if you look in user_routines_fast.c, you will see "while(autonomous_mode)". This means that it will only call User_Autonomous_Code() once, and will keep looping until you disable autonomous.

I stand corrected.

Ryan M. 16-02-2006 13:35

Re: Autonomous Mode
 
It is possible, however, for the robot to go back into autonomous mode after leaving it. This will never happen in a match, but could if you are using a dongle on the competition port.

1337pcgamer 20-02-2006 11:28

Re: Autonomous Mode
 
What is this "dongle" you speak of?

Mike 20-02-2006 11:33

Re: Autonomous Mode
 
Quote:

Originally Posted by 1337pcgamer
What is this "dongle" you speak of?

A dongle is a little switch that connects to your OI's competition port and lets you change between disabled, autonomous and user controlled mode. It's used for testing and is fairly easy to build, however AndyMark also sells one for $30.

bcieslak 09-01-2007 15:27

Re: Autonomous Mode
 
Make sure reset counters and flags when you come out of autonomous for any reason. So many false starts last year forced teams to have to run out on the field to reset their robots in order to reset their automonous routines.

BC

1337pcgamer 10-01-2007 10:58

Re: Autonomous Mode
 
Alright


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

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