Thread: Speed Control
View Single Post
  #2   Spotlight this post!  
Unread 04-02-2009, 23:16
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: Speed Control

You should be able to do what you want; i.e. manually control the motor using the joystick outputs and the motor SetSpeed.vi.

If you are starting from the Basic Robot Main you should be careful not to wire the Drive references from the RobotDrive.lvlib:Open2Motor.vi into the Motor vis. Contrary to its name, the Open2Motor opens a RobotDriveDevRef, which, if wired to a Motor vi like SetSpeed.vi will break the wire. This is because the SetSpeed.vi requires a MotorControlDevRef. You can get the MotorControlDevRef by calling something like Open Jaguar.vi

All of this may be irrelevant, as I am just guessing at what your problem is. Can you show us a picture of your code, or upload the code?

You didn't indicate what prevents you from doing what you're trying to do. Is the VI broken when you try to wire it a certain way?
Reply With Quote