Gimbal Servo Angle Limits

I’d like to configure a gimbal servo so that the camera can only stabilize for positive pitch angles (from 0deg horizontal to 90deg pointing straight down). The servo I’m using has a 180deg operating angle, with a pulse width range of 500us (0deg) to 2500us (180deg).

To do this I set the servo limits in the Camera Gimbal page from 1500us to 2500us. However, this ends up setting the neutral point of the servo arm at 45deg pitch (with 45deg of travel in each direction as opposed to 90deg travel CCW), so when the vehicle is horizontal (0deg pitch) the camera is angled down by 45deg.

If I set the servo limits from 500us to 2500us, I get the desired travel with the neutral point at 0deg, but the camera can rotate at negative pitch angles up to -90deg, which is not desired.

In summary, I’d like to limit movement from 0 to 90deg in the CCW direction. Note that I’ve set MNT1_PITCH_MAX = 0deg and MNT1_PITCH_MIN = -90deg.

Any advice here would be much appreciated.

Servo: https://www.amazon.com/dp/B08YYRKQK5?psc=1&ref=ppx_yo2ov_dt_b_product_detail

Params: servo_gimbal_config.param (19.5 KB)

Try changing SERVO5_TRIM,1500 to 500

changing servo5_trim from 1500 to 500 didn’t do anything unfortunately