|
Re: Question about CMUCAM servo output
The CMU gives PWM outputs from 0 to 255 which on a servo unlike a motor is a commanded posistion not a speed to drive a motor. The units 0 to 255 on a servo are pretty close to a degree but not exactly 1 degree for each unit. 127 is the middle of the servo's rotation. I'd hook up the servo and check out how it moves in the online window. Then you can drag the slider an observe it in action.
The CMU cam doesn't have PWM ports any longer so if you wanted to track via the camera. You could write the values the camera returns to a variable "unsigned char" and then grab a SETPWM block and set the speed
to the same variable.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
|