Thread: Super Rookies
View Single Post
  #5   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