Go to Post I think another really awsome thing about FIRST can be summed up by what Dan, the Wildstang operator, said when they won nats: "I built that!" I mean, the feeling of satisfaction you get knowing that something you created can perform such unbelievable tasks is amazing. - Jupee [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 13-02-2013, 00:28
Ganondalf Ganondalf is offline
Registered User
FRC #4665
 
Join Date: Jan 2013
Location: Minnesota
Posts: 48
Ganondalf is an unknown quantity at this point
Question Autonomous/Dashboard and General Programming Questions

Does anybody have a simple, working, autonomous code they could screen cap and post for reference. As for the dashboard, say I wanted to create a light (on the LV dashboard) that turns on every time a limit switch is pressed. How would I go about programming that? I have looked at the 2013 FRC Dashboard guide but I'm still having trouble figuring it out, would anybody be able to walk me through the process. And while I'm asking all of these questions, how do you make your dashboard open simultaneously when you open the driver station, and how would you make a custom message pop up in the user message box upon start up.

Thank you in advance, and thank you to everyone on Chief Delphi that has helped me in the past as well, you have been a huge help!

Allons-y
Reply With Quote
  #2   Spotlight this post!  
Unread 13-02-2013, 21:09
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,751
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: Autonomous/Dashboard and General Programming Questions

I'll let someone actually on a team post code they claim to work.

To achieve the light, put an SD write of a Boolean on your robot and update it with the value of the limit switch. On the dashboard, place the LEDs in the Operations tab and name it the same as the variable name.

If you create a LV dashboard and want it to launch, goto the setup tab and choose the LV dashboard. This should default to the location that the custom dashboard defaults to.

The custom message you are talking about sounds like a User Message. To write to that, use the Driver Station palette >> LCDWriteUserMessage.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 14-02-2013, 00:28
Ganondalf Ganondalf is offline
Registered User
FRC #4665
 
Join Date: Jan 2013
Location: Minnesota
Posts: 48
Ganondalf is an unknown quantity at this point
Re: Autonomous/Dashboard and General Programming Questions

Thank you very much!
Reply With Quote
  #4   Spotlight this post!  
Unread 14-02-2013, 08:40
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,795
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: Autonomous/Dashboard and General Programming Questions

Here's a simple autonomous.

It just drives, but you can put anything you want done inside the frames.

It's called a Flat Sequence Structure and is found on the Programming -> Structures palette.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 14-02-2013, 11:02
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: Autonomous/Dashboard and General Programming Questions

Mark,

Is the disabling of the safety config for Left and Right Motors Drive in Autonomous something that should have been present in the base code that was distributed (gotcha item)? From memory I don't remember seeing this.
__________________
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
  #6   Spotlight this post!  
Unread 14-02-2013, 11:53
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,795
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: Autonomous/Dashboard and General Programming Questions

This year the default examples created a different mechanism to handle the Drive Safety during autonomous.

They have a new wait vi called Drive Auto that gets wired inline and delays while looping to feed the drive safety.
The palette it's located on is under RobotDrive->Advanced
It fits the single data flow auto design, but is less useful in the concept of a flat sequence (although it can be used there too, it's just more cumbersome).
I find teaching the flat sequence to new students much easier than the technique in the default Auto example. All are valid.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 14-02-2013 at 12:01.
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 12:11.

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