Home        Store        Learn        Blog

SERVO_MIN / MAX behavior

Hi, I have an issue with SERVOx_MIN / MAX / REVERSED and TRIM.
This occurs when SERVOx_FUNCTION parameter is set to MOTORx

Using Ardusub 4.01 with custom frame and QGroundControl v4.0.8.
We use Motor 1-4 with Pixhawk output 1-4

Our setup is with servos and not ESC’s. (Sub with rudders)
We need to reduce the servo working area, and be able to trim the center point.

None of the following parameters seems to work when SERVOx_FUNCTION = MOTORx:
SERVOx_MIN
SERVOx_MAX
SERVOx_REVERSED
SERVOx_TRIM

I know about MOT_PWM_MIN and MAX, but this would apply on all servos and still have the problem with trim. (Anyway this don’t work either)

MOT_x_DIRECTION works!

Seem like this is hardcoded in AP_Motors6DOF.
I could add something to that code that also hardcoded my trim and min/max setting for each motor.

Kato