![]() |
Utlizing the Driver Station to Assist Autonomous Mode
In the FRC Driver Station (under the Operation tab), is a Team Station drop down menu. The options in this drop down menu include the positions such as Red 1 and Blue 2. I am assuming that this enables to driver to input the position of his or her robot?
Also, in the Autonomous Independent framework, a Get Alliance vi has been provided and used. The vi can return the team alliance and field position of the robot. Since our team is planning on writing a different code for each field position, we would like to know if there is a way to link these two? For example, is there a way to program our autonomous so that if the driver inputs 'Red 3' in the driver station, the code that we designate 'Red 3' will run? If that is not an option, how would you reccomend handling various codes that depend on the robot's position? Or are you all writing a general code that could work well in all positions? Thank you! Hope I've made sense! |
Re: Utlizing the Driver Station to Assist Autonomous Mode
Quote:
|
Re: Utlizing the Driver Station to Assist Autonomous Mode
Ah, I see.
So, it would be best to code one general autonomous sequence that could work for all three positions rather than attempting to create a seperate sequence for each position? Or are you aware of any other strategies that would allow us to include more than one autonomous sequence? Thank you so much - that's been a huge help. Our team has been wondering about its function for quite a while. (: |
Re: Utlizing the Driver Station to Assist Autonomous Mode
Switches or similar sensors either on the robot or on the driver station (value read during autonomous disabled and stored) are common ways to have multiple autonomous modes.
Before the match set the switches for the appropriate mode and you're all set. You will be able to have 2^(N) modes where N is the number of switches used. |
Re: Utlizing the Driver Station to Assist Autonomous Mode
Quote:
|
Re: Utlizing the Driver Station to Assist Autonomous Mode
You can even use switches to set the number of seconds of delay you use in an autonomous with said switches. Could be useful for cooperation with alliance partners.
|
Re: Utlizing the Driver Station to Assist Autonomous Mode
Looks like I beat Greg to this. You can also use the virtual I/O on the Dashboard, same functionality without all that messy hardware! (Note: I love the messy hardware...)
|
Re: Utlizing the Driver Station to Assist Autonomous Mode
Quote:
Quote:
Quote:
Thank you so much for all of the great advice, guys! |
Re: Utlizing the Driver Station to Assist Autonomous Mode
By putting the necessary code into the "Disabled" VI, you can create a small VI to use joystick buttons to increment a global variable. Use that global variable in your autonomous VI to select the routine you want to run. You can feed this back to either a custom dashboard, or use the "User Messages" VI (which feeds back to the user display in the lower left of the driverstation) so you can actively watch what you're selecting.
In this manner you don't need to build any switch, and can select the routine to run after your drivers hook everything up on the field and turn the robot on. Remember: Disabled only means that outputs on the robot aren't set. Your code in the disabled VI is still running, so you can do work there. |
Re: Utlizing the Driver Station to Assist Autonomous Mode
how could you use joystick buttons to increment a global variable?
|
| All times are GMT -5. The time now is 11:48. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi