I made a mobile camera mount for my webcam with the NXT. Everything's working fine, but the motor control is somehow jerky. The motion is not continuous: the motors stop and go instead of keeping a steady velocity.
Point is a OpenCV object, containing an x and y coordinate. The function is called continuously, as the main program detects and tracks objects into the camera field. The motors, though, run for a split second and then stop, and then run again. The robot manages to follow the tracked objects, but this is not the control I'd like to obtain.
Is there any possible fix for this?
Thanks a lot
chiodo
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone.
I made a mobile camera mount for my webcam with the NXT. Everything's working fine, but the motor control is somehow jerky. The motion is not continuous: the motors stop and go instead of keeping a steady velocity.
Let me post my snippet:
Point is a OpenCV object, containing an x and y coordinate. The function is called continuously, as the main program detects and tracks objects into the camera field. The motors, though, run for a split second and then stop, and then run again. The robot manages to follow the tracked objects, but this is not the control I'd like to obtain.
Is there any possible fix for this?
Thanks a lot
chiodo