View Single Post
  #2   Spotlight this post!  
Unread 28-01-2009, 16:34
Jetweb Jetweb is offline
is good at making robots find walls
AKA: Jonathan
FRC #0179 (Children of the Swamp!!!)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Jupiter, FL
Posts: 213
Jetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to all
Re: Tracking Servo motor with drive motor in Labview

First of all yes, the servos go from -1 (PWM 0) to +1 (PWM 255).

You sound like your on the right track as far as getting the turret im assuming to align with with servo position, but this will require a rotation sensor on the turret and some form of a control loop (lookup PID loops) to allow you to set a target positon for the motor to try and reach based on the servo position.

What I would do instead is attach the camera to the turret and then let the motor act as your servo and the you can just use the normalized_x values to run the motor which makes things a little simpler and more accurate if done right.

Im using C++ so as far as doing any of these things in LabView im not much help.