View Single Post
  #4   Spotlight this post!  
Unread 04-02-2010, 17:12
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,801
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: Troubles with Labview Code

How do you download the new code to your cRIO?
"Build" & "Run as startup"?

I'm looking at 2010 Game Robot Project.
  • In Teleop.vi you aren't using Servo Set Angle correctly. If you look closely there is a red dot where the wire enters the vi icon. That means you wired the wrong kind of input into Set Angle. For now just right-click on the Servo Set Angle icon and choose Replace -> Servo Palette -> Set Position
  • You shouldn't have Gyro Close in the Stop case either.
Use the Help -> Show Context Help.
If you click on (or hover over) an icon, it will show you what's supposed to be going in and out of it.
Then click on "detailed help" and it will tell you what the valid values and ranges of each input and output are supposed to be.
For Servo Set Angle, it is expecting an integer input in degrees.
The joystick you wired to it only has a floating point value between -1 and 1.

Servo Set Position expects a floating point value just like your joystick produces.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 04-02-2010 at 17:30.