Go to Post Seriously, I figured we had until january before we started lawyering things again. - JamesBrown [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 21-01-2011, 00:00
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Super Rookies

The front panel shows dials and switches and buttons. It's the inputs and outputs of your function, generally. However, for FRC you don't ever really use the front panel for most things, because the inputs and outputs are done with just the "run motor" and "get joystick" commands.

The block diagram is where the programming is done. All the thin lines are called "wires" and they connect "functions." The wires should be a familiar concept to what NXT has (I think, I just use LabVIEW for programming NXT). They are variables: numbers that you modify with functions. Functions are basically things to modify the variables, but for FRC you'll use many that take the wires in and run motors using them.

For example, when you go to robot main, find teleop.vi. In there, you'll see some sort of "get joystick" with a wire coming out of it, which goes into an "arcade drive" function. The get joystick function returns wires that give the x and y positions of the joystick, and the arcade drive function takes x and y positions and runs the motors. These are a perfect match, so all their wires go together.

I suppose you're probably wondering what the purple wires going into the functions are also. These are "devise references", and basically tell the arcade drive function which motors to run (is it the ones connected to port 2 or port 3?)
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2011, 08:50
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,752
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: Super Rookies

You already have some good advice. In NXT, the only thing you build are diagrams. The diagrams look a bit different, but work basically the same. In reality, the framework of FRC allows you to build your program without ever editing a panel. You may find it very useful to place some control or indicators on the panel so that you can see and change values as your robot is running.

Please look at the FRCMastery training, work through some examples, and ask plenty of questions.

Greg McKaskle
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:21.

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