Go to Post Who cares about having a boyfriend when I have my robot? - Jaine Perotti [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-01-2014, 22:47
Gearheads1 Gearheads1 is online now
Registered User
AKA: Brian Holmgren
FRC #4455 (The Burger Bots)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Warrensburg MO
Posts: 38
Gearheads1 is an unknown quantity at this point
Changing autonomous routes through driver's station software

We're a second year team with a single programmer and no strong Labview mentor. Our programmer is sure that he can make some software switches in driver's station and choose one of them after we have placed our robot on the field and it will affect how our autonomous works. I don't think the driver's station can communicate with the robot until teleop, and the only way to change routes in autonomous is through a switch hardwired to the robot that would allow you to tell the autonomous code which routine to run. Any help sorting this out would be greatly appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-01-2014, 23:09
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Changing autonomous routes through driver's station software

During Autonomous, the robot still communicates with the computer, reporting that it is in Autonomous state and reading joystick values, if you tell it to. This does not mean that you cannot still control the robot's movements. You can use a switch or a potentiometer in your control system to tell Labview what autonomous instructions to run, just like using a joystick in teleop. The only thing is, you have to have this switch set correctly before the match starts so that you don't have to touch the controls. The robot will start autonomous, read the switch, then run the program without you touching anything. This is how some teams were able to make one autonomous program with instructions for two or more different starting positions in last year's game.

Definitely possible and a good way to be flexible and work with your alliance!

Happy building!

BTW: The robot is in communications with the computer from the time you see a camera input, until you unplug your driver station from the FMS.
__________________
Per Audacia Ad Astra
Reply With Quote
  #3   Spotlight this post!  
Unread 10-01-2014, 23:13
Tommy F.'s Avatar
Tommy F. Tommy F. is offline
Yeah! Collages!
AKA: 7h0m45
FRC #1985 (Robohawks)
Team Role: Alumni
 
Join Date: Mar 2011
Rookie Year: 2010
Location: St. Louis, MO
Posts: 188
Tommy F. is just really niceTommy F. is just really niceTommy F. is just really niceTommy F. is just really nice
Re: Changing autonomous routes through driver's station software

You can set up multiple autonomous modes using the Digital Inputs on your driver station, shown below.




The example autonomous mode already has the Digital Inputs in the code, you just have to make the case structure, and then have your autonomous code in there.



The switches just have to be set before the match starts.

Hope this helps.
__________________

FTC 289, 290 & 291 :: FRC 1985

2013 St. Louis Regional Semi-Finalist (with 3411 and 4330), Industrial Design Award
2013 Queen City Regional Winner (with 379 and 447)

Reply With Quote
  #4   Spotlight this post!  
Unread 10-01-2014, 23:37
Gearheads1 Gearheads1 is online now
Registered User
AKA: Brian Holmgren
FRC #4455 (The Burger Bots)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Warrensburg MO
Posts: 38
Gearheads1 is an unknown quantity at this point
Thanks for the quick, and great, responses. I will let our programmer know that he's the man!
Reply With Quote
  #5   Spotlight this post!  
Unread 11-01-2014, 07:20
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Changing autonomous routes through driver's station software

To add to this. The information above is correct. The I/O values on that tab will mirror the Cypress settings with a Cypress is plugged in, but are inputs when no Cypress board is used. These virtual I/O values are transmitted to the robot and I believe they are latched during auto. So set them during disabled period before the match starts.

The other approach is to use network tables or smart dashboard variables. This is somewhat more flexible, but not necessarily better.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 11-01-2014, 10:10
dubiousSwain's Avatar
dubiousSwain dubiousSwain is offline
The ride never ends
AKA: Christian Steward
FRC #5420 (Velocity)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2011
Location: USA
Posts: 304
dubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond repute
Re: Changing autonomous routes through driver's station software

We use the analog slider, but i couldn't tell you how they worked (I don't know how they work in the code)
__________________
2015 MAR District Champions




Reply With Quote
  #7   Spotlight this post!  
Unread 12-01-2014, 21:55
tcjinaz tcjinaz is offline
Tim
FRC #3853
Team Role: Mentor
 
Join Date: May 2011
Rookie Year: 2011
Location: Arizona
Posts: 205
tcjinaz has a spectacular aura abouttcjinaz has a spectacular aura about
Re: Changing autonomous routes through driver's station software

Quote:
Originally Posted by Greg McKaskle View Post
To add to this. The information above is correct. The I/O values on that tab will mirror the Cypress settings with a Cypress is plugged in, but are inputs when no Cypress board is used. These virtual I/O values are transmitted to the robot and I believe they are latched during auto. So set them during disabled period before the match starts.

The other approach is to use network tables or smart dashboard variables. This is somewhat more flexible, but not necessarily better.

Greg McKaskle
Do I infer from this that at least one DS packet is sent to the robot at the beginning of Autonomous?

We had a problem last year when our autonomous code was looking for a motor speed from the DS via an SD call. In testing, autonomous worked fine. On the field, it never did anything.

Maybe I just answered my own question. Does the DS data get sent in autonomous, while the SD data is not?

Tim Jordan
__________________
Software Mentor
3853 Pridetronics[

Reply With Quote
  #8   Spotlight this post!  
Unread 13-01-2014, 21:47
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Changing autonomous routes through driver's station software

Smart Dashboard (SD) is entirely independent of the DS and field modes. It will operate from the time the client(s) and server init until they shutdown. It operates between dashboard and robot and the DS in not an SD client.

The DS and robot are in constant communication during disable, auto, and tele. But during auto, the joystick data will not make its way to the user code, and neither will the Cypress I/O. The joystick and Cypress data will be the last packet received during disable.

Greg McKaskle
Reply With Quote
  #9   Spotlight this post!  
Unread 14-01-2014, 22:51
tcjinaz tcjinaz is offline
Tim
FRC #3853
Team Role: Mentor
 
Join Date: May 2011
Rookie Year: 2011
Location: Arizona
Posts: 205
tcjinaz has a spectacular aura abouttcjinaz has a spectacular aura about
Re: Changing autonomous routes through driver's station software

Ah, just dug up the code. We were looking for the throttle position from one of the joysticks.
Thanks Greg!
__________________
Software Mentor
3853 Pridetronics[

Reply With Quote
Reply


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 22:49.

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