Servo Angle From Pulse
Map a hobby servo pulse width between 500 and 2500 microseconds to a signed angle with the documented linear scale of 1000 to 2000 microseconds covering -90 to +90 degrees, clamping extended-range pulses to the endpoints.
Description
Map a hobby servo pulse width between 500 and 2500 microseconds to a signed angle with the documented linear scale of 1000 to 2000 microseconds covering -90 to +90 degrees, clamping extended-range pulses to the endpoints.