Chief Delphi

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

Skabana159 06-01-2003 00:03

Autonomous Initilization
 
I am curious. If we wanted to have several different options for our autonomous 15 seconds, could there be switches on the OI for choosing between them, or would the switches have to be on the RC? I think that, to run, the OI will have to be in communication with the RC anyways.

rbayer 06-01-2003 00:08

The OI needs to be in contact with the RC, but nothing it sends gets input into your code.

Basically, all the axes are set to 127 and all switches are set to off. Thus, the switches would need to be on the RC.

VanWEric 06-01-2003 22:17

during autonomous mode, does the reset switch still work? if so, does it reset the RC, or just the OI?

Wayfare 06-01-2003 22:48

So how exactly will the autonomous mode be switched off? This may have been answered before, I haven't checked through all the threads yet.

iscrc2 06-01-2003 23:02

There is a bit that you test in code that tells you when the game is in auton mode. If you don't test for it it basically looks to your code like your OI is idle. The innovation first manuals describe how to test for it in code.
http://www.innovationfirst.com/first...ence_Guide.pdf

Nate Smith 06-01-2003 23:50

Quote:

Originally posted by Wayfare
So how exactly will the autonomous mode be switched off? This may have been answered before, I haven't checked through all the threads yet.
Considering that the only way we have control over the autonomous mode is to change the team number, which can obviously not be done at competition, I'm guessing that the competition port/arena controller will be sending the signal to the OI as to whether to run in autonomous or user-controlled mode...

Morgan Jones 06-01-2003 23:51

Quote:

Originally posted by VanWEric
during autonomous mode, does the reset switch still work? if so, does it reset the RC, or just the OI?
I'm working from memory, here, but I think the reset button on the OI resets the RC (as I think that's the only thing that would ever need resetting). I would assume that the reset button would work during autonomous mode because its not an input your program would read. It is a command intercepted by some other controller in the RC that would then initiate the reset sequence.

Ian W. 06-01-2003 23:58

yeah, anything PLUGGED into the OI will not work. anything BUILT into the OI will work. that includes the E-Stop button for obvious reasons.

rbayer 07-01-2003 00:06

Quote:

Originally posted by Morgan Jones
I'm working from memory, here, but I think the reset button on the OI resets the RC (as I think that's the only thing that would ever need resetting). I would assume that the reset button would work during autonomous mode because its not an input your program would read. It is a command intercepted by some other controller in the RC that would then initiate the reset sequence.

Half true. There's two resest buttons on the OI--one resets the OI and the other resets the RC.

VanWEric 07-01-2003 18:35

then i guess we have our prog switcher right there. each time you reboot, pick a dif program. Replace the bat volt with the prog id. or something like that

Jeremy_Mc 08-01-2003 00:08

there's sample code in the manual for it to automatically switch...


just look in there under the different modes...it has the EXACT code you need :)

if anyone has any trouble, feel free to contact me via PM or IM or e-mail


*jeremy

John Prather 08-01-2003 00:24

First of all, you will not be able to reset the robot using the OI control because that switch is still based on radio trasmission to work. So you would also not be able to switch programs bassed on changing the batt volt to a program id because it will not transmit to the robot. To program autonomous mode you will have to use switches on your robot or just change the program before you get to the field based on the robots and teams that you are up against. You can always set the starting values of the speed controlers or the spikes though the program. This is also another way to program the autonomous mode.

EricS-Team180 08-01-2003 12:47

I agree...a switch or two on the "on board black box" circuit board should do the trick ;)

Dave Flowerday 08-01-2003 14:09

Quote:

Originally posted by John Prather
First of all, you will not be able to reset the robot using the OI control because that switch is still based on radio trasmission to work.
There will be radio communication between the OI and the robot during autonomous mode. I haven't checked yet if the reset button works in autonomous mode, but my guess is that it will, because the reset command is handled by the master processor, not the BASIC stamp. Remember, the robot won't do anything at all (autonomous or not) without a valid radio link.

Mike537Strategy 08-01-2003 17:19

What I have heard is that your controls (Joysticks and such) won't even be turned on by the judges until the 15 seconds are over. So I'm guessing all the control systems are plugged into a system that keeps them off for the 15 seconds, just like the system that activates the robots when all 4 pads are being stood on.

Noah 08-01-2003 17:50

Quote:

Originally posted by Nate Smith
Considering that the only way we have control over the autonomous mode is to change the team number, which can obviously not be done at competition, I'm guessing that the competition port/arena controller will be sending the signal to the OI as to whether to run in autonomous or user-controlled mode...
How to control Autonomous mode from the OI

Alas, that won't work during competition, but it should prove invaluable during testing.

Caleb Fulton 09-01-2003 06:47

Why won't it work during the competition?

They would simply have control over it. All we have to do is keep auton_mode aliased to PB_mode.bit6 and it SHOULD work, right?

Dave Flowerday 09-01-2003 08:14

Quote:

Originally posted by Caleb Fulton
They would simply have control over it. All we have to do is keep auton_mode aliased to PB_mode.bit6 and it SHOULD work, right?
Yes - as far as the robot controller is concerned, the BASIC Stamp won't know the difference between an autonomous mode dongle connected to the competition port versus the OI being installed at a driver's station during competition and having the field controls activate the autonomous mode.

Caleb Fulton 09-01-2003 16:31

BY THE WAY:

Connecting pin 8 to pin 5 on the Competition port will put it in autonomous mode if you have the default alias of auton_mode VAR PB_mode.bit6


All times are GMT -5. The time now is 20:38.

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