Go to Post The toughest regional is always the one you are competing in! - AcesPease [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 02-02-2015, 11:24
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Question Multiple Autonomous Program Selection via Dashboard input

Dear CD,

Last year we could use the drive station inputs to select multiple inputs for our various autonomous programs.
MY first attempt at reading the dash board boolean inputs in the Autonomous VI has not worked. Has anyone else figured out a way to select multiple programs from the dash board boolean inputs? Last year, the driver station inputs were latched at the beginning of the Autonomous time period.
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377

Last edited by marccenter : 02-02-2015 at 11:25. Reason: more info
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2015, 19:41
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Re: Multiple Autonomous Program Selection via Dashboard input

Dear CD,

I solved this problem by reading the Dashboard Buttons in the Periodic.VI and saving them in a global variable. Then in the Autonomous.VI I read the global variable
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377
Reply With Quote
  #3   Spotlight this post!  
Unread 03-02-2015, 09:33
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Re: Multiple Autonomous Program Selection via Dashboard input

I am zipping up the Dashboard and the Robot Project files for others to reference.

There are some not so subtle changes between the FRC2014 and FRC2015 software. It took me a while to add features to the FRC2015 software to operate similiarly. Here's some items you might want to look at in the attached program.

1) The ability to select multiple (4) autonomous programs via the Dashboard buttons.

2) The ability to display string information from the teleop program (in this case, the program version, my name and RoboRavens 2).

3) The ability to program autonomous motor speed via the sliders in the dashboard. This allows rapid prototyping in autonomous without rebuilding and deploying the code. The dashboard slide scale was modified for a range of minus one to plus one versus the standard zero to five.

4) In the periodic VI I have added logic that allows the operator to modify the elevator motor position based on the joystick, gamepad buttons and a learn mode that allows the operator to learn (or reset) a position and output that value without the joystick. This was designed to allow the operator to adjust and "hold" the front tote elevator in a given position.

5) In order to operate properly you will need to deploy and run as startup the V16.zip files. You will also need to build the Dashboard files and copy and paste all three created files in the Dashboard build directory into the Dashboard directory in a different location (C:\Program Files (x86)\FRC Dashboard) on my laptop.
Attached Files
File Type: zip 2015 3548 V16.zip (199.7 KB, 37 views)
File Type: zip 2015 FRC3548 Dashboard V10.zip (482.9 KB, 32 views)
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377

Last edited by marccenter : 03-02-2015 at 09:35. Reason: more info
Reply With Quote
  #4   Spotlight this post!  
Unread 03-02-2015, 12:56
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Multiple Autonomous Program Selection via Dashboard input

It surprises me that you were unable to read the smart dashboard variables in the autonomous VI, but were able to read them in periodic tasks. Unlike the driver station inputs from year's past, the Smart Dashboard variables should always be active.
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 21:28.

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