fix(params): raise decimal places to match parameter limits (#29495)

Several float parameters had a min, default or increment with more
fractional digits than their decimal setting, so ground stations rounded
them in the help text and value field. For MPC_JERK_MAX (min 0.5,
decimal 0) the help text showed "Min: 1" while the range check rejected
values outside 0.5..500, and an entered 0.5 was displayed as 0.

Only the decimal field changes; defaults and limits are untouched.
Radian parameters whose limits are approximations of pi are left as is.

Assisted-by: Claude:claude-opus-5-5

Signed-off-by: Andrea Bernasconi <andrea.bernasconi@auterion.com>
This commit is contained in:
Andrea Bernasconi authored and GitHub committed 2026-10-30 04:30:52 +13:00
1 parent f84042f1a5
commit 0aa0553dca
10 files changed
+16 -16

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ parameters:
unit: norm
min: 0
max: 1
decimal: 2
decimal: 3
increment: 0.01
default: 0.055
DSHOT_3D_ENABLE:
@@ -70,7 +70,7 @@ parameters:
unit: deg/s
min: 1
increment: 0.1
decimal: 0
decimal: 1
MC_SLOW_DEF_HVEL:
description:
short: Default horizontal velocity limit
@@ -109,7 +109,7 @@ parameters:
unit: deg/s
min: 1
increment: 0.1
decimal: 0
decimal: 1
MC_SLOW_MAP_PTCH:
description:
short: Gimbal pitch rate control input in position slow mode
@@ -324,7 +324,7 @@ parameters:
type: float
default: 0.0
min: 0.0
decimal: 1
decimal: 2
increment: 0.01
FW_SPOILERS_MAN:
description:
@@ -84,7 +84,7 @@ parameters:
unit: norm
min: 0
max: 1
decimal: 0
decimal: 2
increment: 0.01
default: 0.1
@@ -98,7 +98,7 @@ parameters:
unit: m/s^2/sqrt(Hz)
min: 1.0e-05
max: 2
decimal: 4
decimal: 5
LPE_ACC_Z:
description:
short: Accelerometer z noise density
@@ -108,7 +108,7 @@ parameters:
unit: m/s^2/sqrt(Hz)
min: 1.0e-05
max: 2
decimal: 4
decimal: 5
LPE_BAR_Z:
description:
short: Barometric pressure altitude z standard deviation
@@ -369,7 +369,7 @@ parameters:
unit: m^2
min: 0.0
max: 10
decimal: 2
decimal: 4
LPE_FUSION:
description:
short: Integer bitmask controlling data fusion
@@ -87,5 +87,5 @@ parameters:
unit: m/s^3
min: 0.5
max: 500
decimal: 0
decimal: 1
increment: 1
+4 -4
View File
@@ -24,7 +24,7 @@ parameters:
unit: m
min: 0.05
max: 200.0
decimal: 1
decimal: 2
increment: 0.5
NAV_FW_ALT_RAD:
description:
@@ -34,7 +34,7 @@ parameters:
unit: m
min: 0.05
max: 200.0
decimal: 1
decimal: 2
increment: 0.5
NAV_FW_ALTL_RAD:
description:
@@ -46,7 +46,7 @@ parameters:
unit: m
min: 0.05
max: 200.0
decimal: 1
decimal: 2
NAV_MC_ALT_RAD:
description:
short: MC Altitude acceptance radius
@@ -55,7 +55,7 @@ parameters:
unit: m
min: 0.05
max: 200.0
decimal: 1
decimal: 2
increment: 0.5
NAV_TRAFF_AVOID:
description:
@@ -322,7 +322,7 @@ parameters:
default: 0.0165
unit: Nm
min: 0.0
decimal: 3
decimal: 4
SIH_F_CT0:
description:
short: Forward thruster static thrust coefficient
@@ -180,7 +180,7 @@ parameters:
unit: m/s^3
min: 0.5
max: 500
decimal: 0
decimal: 1
increment: 1
SPC_MAN_Y_MAX:
description:
@@ -158,7 +158,7 @@ parameters:
type: float
default: 0.865
min: 0.0
decimal: 2
decimal: 3
increment: 0.01
SC_YR_INT_LIM:
description: