Valid range check

Hello folks,

While I was testing parameters, I noticed that PX4 needs to check or change some valid ranges. The details are as in the below.

  • param set COM_POS_FS_EPH -1
    –> it triggers crash (free fall) / failsafe / there is not valid range on document. / it must deny a negative value for this parameter.

  • param set EKF2_ABL_LIM -999
    –> it makes a vehicle totally lose position info.

  • param set MC_PITCHRATE_FF -1
    –> it makes a vehicle totally lose attitude control / free fall / there is no minimum range (default: 0 / valid range: ? - 0)

  • param set MOT_SLEW_MAX 999
    –> it makes a vehicle totally loss attitude control / there is no maximum range (default: 0 / valid range: 0 - ?)

  • param set MPC_THR_MAX 0.4
    –> it causes “Hover thrust has been constrained by min/max”. The valid range should be decreased. 0 - 1 --> 0.5 - 1

  • param set SENS_BOARD_ROT 40
    –> it triggers crash (free fall) / reboot required / it needs to take effect the changed parameter after reboot. / while flight mode is hold, it fails to maintain current position.

If PX4 checks or changes valid ranges of these parameters, it will be nice for robustness about user inputs. Thanks!