![]() |
GetLocation() or GetAlliance()
Hello,
I am wondering how to use either of the two functions (GetLocation() or GetAlliance()) whic gets the location or alliance off of the Driver Station. I want to make it so that I can have 2 or more different autonomous'. How would I fully implement this? Thanks, Davis |
Re: GetLocation() or GetAlliance()
You can actually read the joysticks during disabled. I setup a snippet of code this week to read the driver joystick and check if the trigger is held for 3 seconds, and switch to a different autonomous routine.
For reference, here's that chunk out of my code Code:
static Timer button_combo_timer; |
Re: GetLocation() or GetAlliance()
Interesting, where would I place that to read it before a match?
Thanks |
Re: GetLocation() or GetAlliance()
If your using iterative robot, in
Code:
void DisabledPeriodic(void){ |
| All times are GMT -5. The time now is 17:40. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi