|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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.
|
|
#2
|
|||
|
|||
|
Re: Multiple Auto Modes?
You can set it on your DS before the match starts
http://wpilib.screenstepslive.com/s/...smartdashboard |
|
#3
|
|||
|
|||
|
Re: Multiple Auto Modes?
Quote:
|
|
#4
|
|||
|
|||
|
Re: Multiple Auto Modes?
Quote:
|
|
#5
|
|||
|
|||
|
Re: Multiple Auto Modes?
The SmartDashboard is java. However, LabVIEW has it's own customize-able dashboard. It can be created by selecting FRC Dashboard Project under new in the initial screen when you launch LabVIEW. You can send data between the robot and dashboard by using the VIs in the Dashboard section of the WPI library.
|
|
#6
|
|||||
|
|||||
|
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. |
|
#7
|
||||
|
||||
|
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. |
|
#8
|
|||
|
|||
|
Re: Multiple Auto Modes?
Last year we used a RioDuino with touch screen to do just that. The screen also displayed diagnostics info.
|
|
#9
|
|||
|
|||
|
Re: Multiple Auto Modes?
Can you explain to me how this integrates with the RoboRIO? i have no experience with having anything other than the roborio for processing things.
|
|
#10
|
|||
|
|||
|
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).
|
|
#11
|
|||||
|
|||||
|
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 : ![]() Last edited by EDesbiens : 01-11-2016 at 12:24 PM. Reason: Adding a picture |
|
#12
|
||||
|
||||
|
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.
|
|
#13
|
|||||
|
|||||
|
Re: Multiple Auto Modes?
Quote:
|
|
#14
|
||||
|
||||
|
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.
|
|
#15
|
|||||
|
|||||
|
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... |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|