Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Initializing autonomous mode (http://www.chiefdelphi.com/forums/showthread.php?t=24538)

Mr. Lim 30-01-2004 00:34

Initializing autonomous mode
 
I'm sure this is quite a newbie question, but here goes:

Before a match starts, what state is the robot in?
i.e. Powered On - Radios Active (program running), Autonomous Mode, but Disabled...
or Powered On - Radios Active (programming running), Operator Mode, but Disabled...
or Powered On - Radios not Active (program not running)...
or etc...

The reason is I'm unsure of how to initialize autonomous mode. I'm concerned that the autonomous program might be running before the match actually begins. And if you have some kind of dead-reckoning involved at the start, it'll get all messed up.

Can someone give me a quick lowdown of exactly how the robot states are setup pre-match, and what happens at the start of the match? Hell, detail the transition from autonomous to operator mode too if it's not as obvious as it should be =).

-Shawn...

deltacoder1020 30-01-2004 00:43

Re: Initializing autonomous mode
 
I believe it's something near your second case, but I may be mistaken. Chances are good that autonomous_mode is a true value only during the actual autonomous mode.

Larry Barello 30-01-2004 00:52

Re: Initializing autonomous mode
 
I have the system right in front of me and it prints out status and this is what it says:

When "disabled" the user code is in normal mode, running the normal mode loop, reading operator inputs, writing outputs, etc. but all outputs are disabled.

This is regardless of whether the autonomous switch is set or not (IFI dongle)

If the autonomous switch is set, the user code transitions into autonomous mode when the disable is removed.

Mr. Lim 30-01-2004 01:26

Re: Initializing autonomous mode
 
Thanks for the quick responses! That answers all my questions!

Astronouth7303 30-01-2004 14:09

Re: Initializing autonomous mode
 
Sort of half related: If the OI is unplugged, no code executes.

Code\\Pilot 31-01-2004 16:45

Re: Initializing autonomous mode
 
I had the same question once, but i managed to figure it out.
In the OI you can see that you have many ports, and one of those ports is the competition port, through the competition port the referis can stop your robot and activate autonomous. You can make a simulation of the initiation messing with that port.
Here is a link that tells you how:

http://www.innovationfirst.com/FIRST...umentation.htm

it takes to the documentation of innovationfirst.
Click in the link that says "Competition port pin-out guide".
That should help you.

Have fun!!!

Code\\monkey

KevinB 31-01-2004 17:41

Re: Initializing autonomous mode
 
Just to summarize as I understand it:

During the time before the match, the RC is ...
  • Powered On
  • Radios Active
  • Programming running
  • Disabled

I'm not sure if there is a set standard as to whether or not it is in "operator" or "autonomous" mode; with a dongle -- it is possible to change that mode setting while the robot is disabled.

Astronouth7303 02-02-2004 07:26

Re: Initializing autonomous mode
 
as the docs say: USE EXTREME CAUTION!!! Some pins on the Competition port go DRECTLY to the processor


All times are GMT -5. The time now is 17:13.

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