|
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.
|