![]() |
Multiple Auto Modes?
Is it possible in anyway in labview to either take a switch or button on the robot itself to switch between different autos? I want to use this solely so our team will be able to adjust depending on where the obstacles are. If you know of anyway to make this happen please voice your help.
|
Re: Multiple Auto Modes?
You can set it on your DS before the match starts
http://wpilib.screenstepslive.com/s/...smartdashboard |
Re: Multiple Auto Modes?
Quote:
|
Re: Multiple Auto Modes?
Quote:
|
Re: Multiple Auto Modes?
Quote:
|
Re: Multiple Auto Modes?
There are couple of LabVIEW examples for a robot mounted switch here, but it just depends on what kind of electrical switch you choose.
You can also use the default LabVIEW Dashboard to choose an autonomous mode. Examples are on the Basic tab of the Dashboard and have corresponding code in the default project. |
Re: Multiple Auto Modes?
In years past, whenever I wanted to do an auto-selector for our robots, I would use a 2-way switch(Up is an increment, down is an decrement) on the DS which is read in the LV code with a DS-Read Integer with a integer case selector. That case then corresponds to a specific auto.
I also have that int selector display the auto that you will run on the DS for the driver's convenience. Wish I could post code snippets, but my LV is currently updating on this computer for the season. |
Re: Multiple Auto Modes?
Last year we used a RioDuino with touch screen to do just that. The screen also displayed diagnostics info.
|
Re: Multiple Auto Modes?
Quote:
|
Re: Multiple Auto Modes?
I have done multiple auto modes before on a robot in C++, but I will try and generalize it for you so that you can port it over to labview. If you are wanting a physical switch (I. E. not dashboard), during your auto loop, you have an IF statement checking whether the switch is on or not. Within the IF statement, you put your autonomous code or function. You can have multiple IF statements for multiple auto modes, and you can check all switches in the IF statement (i.e. if Switch 1 is off and switch 2 is on and switch 3 is on (3 switches is just an arbitrary number) it can be a different auto than if all switches are on).
|
Re: Multiple Auto Modes?
Last year I had 10 different auto modes using Labview... You can modify the dashboard to display infos about each and to send/receive data... I'm trying to get a screenshot of it...
EDIT : Got the picture : ![]() |
Re: Multiple Auto Modes?
Our programming subteam discussed this issue at length Saturday. some dip switches would allow you to select one of any number of autonomous modes you wanted to run. Your first step in autonomous would be to poll the switches and then proceed to the selected mode. I know that's over simplified, but that was the gist of our discussion.
|
Re: Multiple Auto Modes?
Quote:
|
Re: Multiple Auto Modes?
I have used the driver station way of doing things, with fairly good success. If you do not have strong coders you could always hook switches to the DIO ports and "Code in" your autonomous mode. You can enter binary and have your field team carry a cheat sheet.
|
Re: Multiple Auto Modes?
If someone needs help with having multiple autonomous modes on a Labview driver station, PM me :) We could discuss/skype about it...
|
Re: Multiple Auto Modes?
Quote:
|
Re: Multiple Auto Modes?
Last year we used a toggle switch which plugged into the DIO ports on the rio. we would flip the switch to run the code for that particular orientation on the field. This year we are going to work with an analog dial. However I'd love to try to incorporate this into the driver station.
|
Re: Multiple Auto Modes?
Quote:
|
I am always concerned about game day operation with respect to the use of the driver station software. If there was a bug, or the laptop got hung up it may cause a problem with operation. On the other hand the switches always work. It all depends on your comfort level.
|
Re: Multiple Auto Modes?
In my three years I've programmed and driven with all three methods: switches on robot, physical switches on the control panel, and a virtual dashboard selector. Personally, I like physical switches on the control panel the best because you can set it really quickly (no need to fiddle around getting the cursor to the right spot) and you can make the change after you put your robot on the field (for last minute strategy changes). I know in 2014 we made last minute changes a number of times (to run or not to run) that we otherwise wouldn't have been able to make. But to each his own.
|
Re: Multiple Auto Modes?
What 2959 did is to create a scripting language. It is a pretty straight forward language that lets our drive team code a new auto on the fly. We have a couple dozen pre-written that we can load up, but it is pretty simple to code on the fly.
We tested it with our new programmers and after half an hour of instruction they were able to code a bot to go through a small maze an pick up a can at the end in about 1/2 an hour. We extended it this year to allow for if then statements and functions, etc. We are hoping this gives us the edge during autonomous. |
| All times are GMT -5. The time now is 22:20. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi