|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello everybody,
I would like to be able to have an enumerated constant on the dashboard to switch between the different autonomous codes that I have. I am using a case structure to flip between codes. I can hook an enumerated constant directly to the case structure, but I would like to make it a global variable so as to reference it from the dashboard. Is it even possible to reference autonomous independent vi to the dashboard in the basic framework? |
|
#2
|
||||
|
||||
|
Re: Autonomous selection from dashboard
Through the basics I learned through our programers, the only effect the control box has on autonomous is the disable. We just use switches on the robot because they work and there's a lot less hassle for the robot to identify the code you want it to use and it is faster to install on the robot and the code writing seems to be easier. If you really want to try keep people updated because our team had a mentor that tried to but couldn't figure it out and just reverted back to the switches on the robot.
|
|
#3
|
|||
|
|||
|
Re: Autonomous selection from dashboard
I may be wrong, but I thought that you couldn't use a computer for input during competition? Wouldn't a control on the dashboard be useless if you can't use it? Am I missing something?
Why not use a switch wired to the DIO pins of the DS? That's what I plan on doing for autonomous mode selection. I would rather have switches on the control board than on the robot. That way I can check right before the match and be absolutely sure, plus I plan on putting a bunch of other stuff with it, LEDS and the like. Maybe a 7seg if I get really bored between now an Mar 26. |
|
#4
|
|||
|
|||
|
Re: Autonomous selection from dashboard
While 1675 was messing around with more autonomous routines at Midwest this weekend, we found out that (at least the way we were doing it) when you try to read the digital IO pins in autonomous, it takes them from the state they were at driver station boot.
If you go this route, make sure you thoroughly test your system and that drivers know of any special procedures they need to follow to choose the mode they want. (We ended up not putting it in yet because we only used one autonomous routine.) |
|
#5
|
|||
|
|||
|
Re: Autonomous selection from dashboard
Well, if input isn't allowed, that does make it slightly easier. Now I just need to find out how to wire a boolean to an actual switch or potentiometer on the DIO of the DS. btw, I am not only the programmer this year, but I am also the electrician and driver. Keeping myself up to date should be easy.
![]() |
|
#6
|
||||||
|
||||||
|
Re: Autonomous selection from dashboard
Quote:
We implemented a similar select auto program from OI method as we've used in past years, except we didn't use the Driver Station's digital IO - instead, we used the left and right stick push buttons on our Logitech gamepad to select start position and program number, respectively: (This is obviously Wind River code. The code resides in the "Disabled Periodic" routine.) Code:
Write2LCD contains code which updates the nifty new user-writeable DS LCD display screen with robot info, including text descriptions of each auto program we run. Who needs a PC dashboard, anyway? |
|
#7
|
|||
|
|||
|
Re: Autonomous selection from dashboard
Now THAT is really cool! If I could assign a button on the left most joystick to toggle between autonomous codes, that would be !@#$ hot! How would you go about using the LCD of the DS in LabView?
|
|
#8
|
||||||
|
||||||
|
Re: Autonomous selection from dashboard
Quote:
|
|
#9
|
|||
|
|||
|
Re: Autonomous selection from dashboard
Wow, that is really useful! Thank you so much!
|
|
#10
|
||||
|
||||
|
Re: Autonomous selection from dashboard
The protocol for the dashboard allows only communication from the cRIO to the DS.
|
|
#11
|
|||
|
|||
|
Re: Autonomous selection from dashboard
We attached to switches to the digital input on the DS. These are read in disabled mode and set a global variable in Labview. We use 2 switches to select driver mode (2 switches, 4 choices, switched between Arcade, Tank, Tank Drive on a Gamepad and two stick arcade). We have three switches for auto mode selection which gives us 8 possible auto modes. The selected switches are displayed on the driver station, driver selection is on the front page, and auto mode is on the second page of display.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Switching to/from autonomous mode | RDD | Programming | 6 | 12-02-2007 16:14 |
| Setting Autonomous Settings from OI | Tom Saxton | Programming | 15 | 27-03-2005 11:45 |
| Setting Autonomous Settings from OI | Tom Saxton | Control System | 4 | 14-03-2005 22:33 |
| Weird Output from Dashboard Port | Ian W. | Programming | 9 | 06-03-2004 21:33 |
| Autonomous Code From Experience | EbonySeraphim | Programming | 7 | 14-03-2003 21:56 |