Go to Post If they're going to blame you for it anyway, you might as well have fun. - Rick TYler [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-01-2016, 22:23
Unexas Unexas is offline
Lead Programmer
AKA: Douglas Byrd
FRC #3753 (BulahBots)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2011
Location: Baton Rouge
Posts: 22
Unexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really nice
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   Spotlight this post!  
Unread 09-01-2016, 22:40
sparkydp sparkydp is offline
Registered User
AKA: David Page
FRC #0435 (Robodogs)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2002
Location: Raleigh, NC
Posts: 32
sparkydp is on a distinguished road
Re: Multiple Auto Modes?

You can set it on your DS before the match starts
http://wpilib.screenstepslive.com/s/...smartdashboard
  #3   Spotlight this post!  
Unread 09-01-2016, 22:58
Unexas Unexas is offline
Lead Programmer
AKA: Douglas Byrd
FRC #3753 (BulahBots)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2011
Location: Baton Rouge
Posts: 22
Unexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really nice
Re: Multiple Auto Modes?

Quote:
Originally Posted by sparkydp View Post
You can set it on your DS before the match starts
http://wpilib.screenstepslive.com/s/...smartdashboard
I am using labview so this makes no sense to me.
  #4   Spotlight this post!  
Unread 09-01-2016, 23:11
Unexas Unexas is offline
Lead Programmer
AKA: Douglas Byrd
FRC #3753 (BulahBots)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2011
Location: Baton Rouge
Posts: 22
Unexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really nice
Re: Multiple Auto Modes?

Quote:
Originally Posted by sparkydp View Post
You can set it on your DS before the match starts
http://wpilib.screenstepslive.com/s/...smartdashboard
Are you able to use this if i program in labview or is it only for java?
  #5   Spotlight this post!  
Unread 09-01-2016, 23:21
thatnameistaken thatnameistaken is online now
Registered User
AKA: Joshua Johnston
FRC #2191 (Flux Core)
Team Role: College Student
 
Join Date: Oct 2012
Rookie Year: 2013
Location: Hamilton, NJ
Posts: 52
thatnameistaken is on a distinguished road
Re: Multiple Auto Modes?

Quote:
Originally Posted by Unexas View Post
Are you able to use this if i program in labview or is it only for java?
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   Spotlight this post!  
Unread 09-01-2016, 23:25
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,786
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #7   Spotlight this post!  
Unread 10-01-2016, 00:06
Kyle Heaton's Avatar
Kyle Heaton Kyle Heaton is offline
I like volunteering.
FRC #0045 (TechnoKats)
Team Role: Leadership
 
Join Date: May 2014
Rookie Year: 2014
Location: Indiana, USA
Posts: 25
Kyle Heaton will become famous soon enough
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.
__________________
Software Lead Student 2014-2015
Student Technical Lead 2015-2016


Tippecanoe District Winner - Perry Meridian District Winner - District Champs Semifinalists

Kokomo District Quarterfinalists - Dean's List Indiana District Finalist

Arkansas Regional Quarterfinalists - Boilermaker Regional Quarterfinalists
  #8   Spotlight this post!  
Unread 10-01-2016, 00:10
Robo Hamsters Robo Hamsters is offline
Registered User
AKA: Matthew Vesperman
FRC #4466 (Robo Hamsters)
Team Role: Mentor
 
Join Date: Dec 2012
Rookie Year: 2012
Location: Culpeper, Va.
Posts: 76
Robo Hamsters is an unknown quantity at this point
Re: Multiple Auto Modes?

Last year we used a RioDuino with touch screen to do just that. The screen also displayed diagnostics info.
__________________

FRC 4466
FTC 7042
=================
2013 Washington DC Regional Finalist
  #9   Spotlight this post!  
Unread 11-01-2016, 11:56
Unexas Unexas is offline
Lead Programmer
AKA: Douglas Byrd
FRC #3753 (BulahBots)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2011
Location: Baton Rouge
Posts: 22
Unexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really nice
Re: Multiple Auto Modes?

Quote:
Originally Posted by Robo Hamsters View Post
Last year we used a RioDuino with touch screen to do just that. The screen also displayed diagnostics info.
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   Spotlight this post!  
Unread 11-01-2016, 12:20
414cnewq 414cnewq is offline
Registered User
FRC #3844 (Kentucky Wildbots)
Team Role: Alumni
 
Join Date: Jul 2014
Rookie Year: 2014
Location: KY
Posts: 86
414cnewq has much to be proud of414cnewq has much to be proud of414cnewq has much to be proud of414cnewq has much to be proud of414cnewq has much to be proud of414cnewq has much to be proud of414cnewq has much to be proud of414cnewq has much to be proud of414cnewq has much to be proud of414cnewq has much to be proud of
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   Spotlight this post!  
Unread 11-01-2016, 12:20
EDesbiens's Avatar
EDesbiens EDesbiens is offline
Passionate crackpot
AKA: Étienne Desbiens
FRC #5859 (i)
Team Role: College Student
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Canton de Hatley, QC, Canada
Posts: 297
EDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of light
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 :
__________________
Lisa: Players play and managers manage.
Ralph: Do alligators alligate?

Last edited by EDesbiens : 11-01-2016 at 12:24. Reason: Adding a picture
  #12   Spotlight this post!  
Unread 11-01-2016, 12:30
Team34Guy's Avatar
Team34Guy Team34Guy is offline
Controls/Programming Mentor
AKA: Chris Southard
FRC #0034 (Rockets Team 34)
Team Role: Mentor
 
Join Date: Aug 2015
Rookie Year: 2009
Location: Athens, AL
Posts: 21
Team34Guy is a jewel in the roughTeam34Guy is a jewel in the roughTeam34Guy is a jewel in the rough
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   Spotlight this post!  
Unread 11-01-2016, 12:37
EDesbiens's Avatar
EDesbiens EDesbiens is offline
Passionate crackpot
AKA: Étienne Desbiens
FRC #5859 (i)
Team Role: College Student
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Canton de Hatley, QC, Canada
Posts: 297
EDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of light
Re: Multiple Auto Modes?

Quote:
Originally Posted by Team34Guy View Post
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.
Why wouldn't your guys do it on the computer with a selector in the driver station? Way simpler and you can change the number of modes at any time...
__________________
Lisa: Players play and managers manage.
Ralph: Do alligators alligate?
  #14   Spotlight this post!  
Unread 11-01-2016, 13:06
fsgond's Avatar
fsgond fsgond is offline
Why aren't you throwing balls?!
AKA: Anthony
FRC #5484 (Memento Vitam)
Team Role: Coach
 
Join Date: Oct 2007
Rookie Year: 2007
Location: South Bend
Posts: 106
fsgond has a brilliant futurefsgond has a brilliant futurefsgond has a brilliant futurefsgond has a brilliant futurefsgond has a brilliant futurefsgond has a brilliant futurefsgond has a brilliant futurefsgond has a brilliant futurefsgond has a brilliant futurefsgond has a brilliant futurefsgond has a brilliant future
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.
__________________
Anthony Rubio
Co-Coach, Memento Vitam Team 5484, 2015-????
Mentor, Black Knights Team 135, 2009-2015
Student, Black Knights Team 135, 2007-2008
  #15   Spotlight this post!  
Unread 11-01-2016, 13:19
EDesbiens's Avatar
EDesbiens EDesbiens is offline
Passionate crackpot
AKA: Étienne Desbiens
FRC #5859 (i)
Team Role: College Student
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Canton de Hatley, QC, Canada
Posts: 297
EDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of light
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...
__________________
Lisa: Players play and managers manage.
Ralph: Do alligators alligate?
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:34.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi