Function rc_servo_send_pulse_normalized#
Defined in File servo.h
Function Documentation#
-
int rc_servo_send_pulse_normalized(int ch, double input)#
Like rc_send_pulse_us but translates a desired servo position from -1.5 to 1.5 to a corresponding pulse width from 600 to 2400us.
We cannot gurantee all servos will operate over the full range from -1.5 to 1.5 as that is normally considered the extended range. -1.0 to 1.0 is a more typical safe range but may not utilize the full range of all servos.
- Parameters:
ch – [in] Channel to send signal to (1-8) or 0 to send to all channels.
input – [in] normalized position from -1.5 to 1.5
- Returns:
0 on success, -1 on failure