View Single Post
  #6   Spotlight this post!  
Unread 26-09-2011, 23:51
Chexposito's Avatar
Chexposito Chexposito is offline
Registered User
AKA: Expo
FRC #1730
Team Role: Alumni
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Missouri
Posts: 272
Chexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of lightChexposito is a glorious beacon of light
Re: How to set up a 3rd (non drive) motor in C++ Windriver

if you're looking to use an axis as your motor control:
1. joystick(whichever joystick you're using).GetRawAxis(#), i can't remember the axis numbers but if you do a print statement, for all the different axis.
2. look into using a encoder or potentiometer (feedback) thus you can use a pid loop. for more info about pid loops, check: http://www.simbotics.org/resources/controls
3. joystick tips, use a limit function to limit the output of the joystick. also a dead band function helps with the problem that most joysticks don't go back to zero often or at all