mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 00:30:50 +08:00
fix(parameters): add missing units to parameter metadata (#29819)
* docs(parameters): add 4 new units - A/V (ampere per volt) - Pa (pascal) - Pa/V (pascal per volt) - MHz (megahertz) * docs(parameters): add missing units These parameters have a physical unit (often stated in their own description) but no unit field, so QGC and the parameter reference show them as unitless. Add the missing units to 116 parameters. Assisted-by: Claude:claude-opus-5-5 * docs(parameters): drop units from descriptions now in the unit field Assisted-by: Claude:claude-opus-5-5 * fix(microstrain): label orientation parameters deg src/drivers/ins/microstrain/MicroStrain.cpp requires these to be in degrees (they are converted to radians at line 1121-1124), but the param docstring mentioned which was moved to the unit field just before. Fix by labelling correctly as degrees. Signed-off-by: Balduin <balduin@auterion.com> * docs(parameters): fix smaller inconsistencies Address review from @dakejahl: - mc_nn_control: MC_NN_MIN_RPM also in units of rpm - sensors: remove redundant '#unit: Pa' comment - microstrain: Typo in MS_GNSS_OFF2_Z Signed-off-by: Balduin <balduin@auterion.com> --------- Signed-off-by: Balduin <balduin@auterion.com>
This commit is contained in:
1 parent
83960122a5
commit
da7f6cccd4
44 files changed
+157
-41
No files matched your search
@@ -4,10 +4,11 @@ parameters:
|
||||
definitions:
|
||||
BAT_V_OFFS_CURR:
|
||||
description:
|
||||
short: Offset in volt as seen by the ADC input of the current sensor
|
||||
short: Offset as seen by the ADC input of the current sensor
|
||||
long: |-
|
||||
This offset will be subtracted before calculating the battery
|
||||
current based on the voltage.
|
||||
type: float
|
||||
unit: V
|
||||
default: 0.0
|
||||
decimal: 8
|
||||
@@ -23,13 +23,14 @@ parameters:
|
||||
|
||||
BAT${i}_A_PER_V:
|
||||
description:
|
||||
short: Battery ${i} current per volt (A/V)
|
||||
short: Battery ${i} current per volt
|
||||
long: |
|
||||
The voltage seen by the ADC multiplied by this factor
|
||||
will determine the battery current. A value of -1 means to use
|
||||
the board default.
|
||||
|
||||
type: float
|
||||
unit: A/V
|
||||
decimal: 8
|
||||
reboot_required: true
|
||||
num_instances: *max_num_config_instances
|
||||
|
||||
@@ -30,7 +30,7 @@ parameters:
|
||||
min: 1.0
|
||||
FLW_TGT_FA:
|
||||
description:
|
||||
short: Follow Angle setting in degrees
|
||||
short: Follow Angle setting
|
||||
long: |-
|
||||
Angle to follow the target from. 0.0 Equals straight in front of the target's
|
||||
course (direction of motion) and the angle increases in clockwise direction,
|
||||
@@ -39,6 +39,7 @@ parameters:
|
||||
Note: When the user force sets the angle out of the min/max range, it will be
|
||||
wrapped (e.g. 480 -> 120) in the range to gracefully handle the out of range.
|
||||
type: float
|
||||
unit: deg
|
||||
default: 180.0
|
||||
min: -180.0
|
||||
max: 180.0
|
||||
@@ -68,6 +69,7 @@ parameters:
|
||||
This is the maximum tangential velocity the drone will circle around the target whenever
|
||||
an orbit angle setpoint changes. Higher value means more aggressive follow behavior.
|
||||
type: float
|
||||
unit: m/s
|
||||
default: 5.0
|
||||
min: 0.0
|
||||
max: 20.0
|
||||
|
||||
@@ -34,6 +34,7 @@ parameters:
|
||||
short: Throttle max slew rate
|
||||
long: Maximum slew rate for the commanded throttle
|
||||
type: float
|
||||
unit: 1/s
|
||||
default: 0.0
|
||||
min: 0.0
|
||||
max: 1.0
|
||||
@@ -129,6 +130,7 @@ parameters:
|
||||
description:
|
||||
short: Altitude error time constant
|
||||
type: float
|
||||
unit: s
|
||||
default: 5.0
|
||||
min: 2.0
|
||||
decimal: 2
|
||||
@@ -140,6 +142,7 @@ parameters:
|
||||
Minimum altitude error needed to descend with max airspeed and minimal throttle.
|
||||
A negative value disables fast descend.
|
||||
type: float
|
||||
unit: m
|
||||
default: -1.0
|
||||
min: -1.0
|
||||
decimal: 0
|
||||
@@ -156,6 +159,7 @@ parameters:
|
||||
description:
|
||||
short: True airspeed error time constant
|
||||
type: float
|
||||
unit: s
|
||||
default: 5.0
|
||||
min: 2.0
|
||||
decimal: 2
|
||||
@@ -166,6 +170,7 @@ parameters:
|
||||
long: This filter is applied to the specific total energy rate used for throttle
|
||||
damping.
|
||||
type: float
|
||||
unit: s
|
||||
default: 0.4
|
||||
min: 0.0
|
||||
max: 2
|
||||
|
||||
@@ -198,12 +198,13 @@ parameters:
|
||||
description:
|
||||
short: Time constant for open-loop AUX gimbal control
|
||||
long: |-
|
||||
Alpha filter time constant defining the convergence rate (in seconds) for open-loop AUX mount control
|
||||
Alpha filter time constant defining the convergence rate for open-loop AUX mount control
|
||||
|
||||
Use when no angular position feedback is available.
|
||||
With MNT_MODE_OUT set to AUX, the mount operates in open-loop and directly commands the servo output.
|
||||
Parameters must be tuned for the specific servo to approximate its speed and response.
|
||||
type: float
|
||||
unit: s
|
||||
default: 0.3
|
||||
min: 0.0
|
||||
MNT_RC_IN_MODE:
|
||||
|
||||
@@ -15,6 +15,7 @@ parameters:
|
||||
sets the part of the action range the motor can reproduce, which the module
|
||||
reports at startup.
|
||||
type: int32
|
||||
unit: rpm
|
||||
default: 22000
|
||||
min: 0
|
||||
max: 80000
|
||||
@@ -24,6 +25,7 @@ parameters:
|
||||
long: The minimum RPM of the motors. Used to normalize the output of the neural
|
||||
network. Actions that ask for less than this idle the motor.
|
||||
type: int32
|
||||
unit: rpm
|
||||
default: 1000
|
||||
min: 0
|
||||
max: 80000
|
||||
|
||||
@@ -126,6 +126,7 @@ parameters:
|
||||
capabilities of the vehicle. Set to 0 to disable the horizontal
|
||||
time-stretch.
|
||||
type: float
|
||||
unit: m
|
||||
default: 2.0
|
||||
min: 0
|
||||
max: 10
|
||||
@@ -143,6 +144,7 @@ parameters:
|
||||
estimate is refined in flight). Set to 0 to disable the vertical
|
||||
time-stretch.
|
||||
type: float
|
||||
unit: m
|
||||
default: 1.0
|
||||
min: 0
|
||||
max: 10
|
||||
|
||||
@@ -26,6 +26,7 @@ parameters:
|
||||
MPC_XY_VEL_MAX or MPC_VEL_MANUAL).
|
||||
If set to a negative value, the existing individual parameters are used.
|
||||
type: float
|
||||
unit: m/s
|
||||
default: -10.0
|
||||
min: -20
|
||||
max: 20
|
||||
@@ -39,6 +40,7 @@ parameters:
|
||||
MPC_Z_VEL_MAX_UP or MPC_LAND_SPEED).
|
||||
If set to a negative value, the existing individual parameters are used.
|
||||
type: float
|
||||
unit: m/s
|
||||
default: -3.0
|
||||
min: -3
|
||||
max: 8
|
||||
|
||||
@@ -203,9 +203,9 @@ parameters:
|
||||
short: Barometer ${i} offset
|
||||
category: System
|
||||
type: float
|
||||
unit: Pa
|
||||
default: 0.0
|
||||
decimal: 3
|
||||
#unit: Pa
|
||||
volatile: true
|
||||
num_instances: *max_num_sensor_instances
|
||||
instance_start: 0
|
||||
@@ -224,9 +224,10 @@ parameters:
|
||||
CAL_DPRES${i}_OFF:
|
||||
description:
|
||||
short: Differential pressure sensor ${i} offset
|
||||
long: The zero-reading of this differential pressure sensor, in Pascal.
|
||||
long: The zero-reading of this differential pressure sensor.
|
||||
category: System
|
||||
type: float
|
||||
unit: Pa
|
||||
default: 0.0
|
||||
decimal: 3
|
||||
volatile: true
|
||||
|
||||
@@ -6,12 +6,13 @@ parameters:
|
||||
description:
|
||||
short: Differential pressure sensor offset of the first airspeed sensor
|
||||
long: |-
|
||||
The offset (zero-reading) in Pascal of the sensor holding calibration slot 0.
|
||||
The offset (zero-reading) of the sensor holding calibration slot 0.
|
||||
|
||||
Kept as a mirror of CAL_DPRES0_OFF so that ground stations can still detect whether
|
||||
airspeed has been calibrated. The firmware applies CAL_DPRESx_OFF, not this value.
|
||||
category: System
|
||||
type: float
|
||||
unit: Pa
|
||||
default: 0.0
|
||||
volatile: true
|
||||
SENS_DPRES_REV:
|
||||
@@ -29,11 +30,12 @@ parameters:
|
||||
long: |-
|
||||
Pick the appropriate scaling from the datasheet.
|
||||
this number defines the (linear) conversion from voltage
|
||||
to Pascal (pa). For the MPXV7002DP this is 1000.
|
||||
to pressure. For the MPXV7002DP this is 1000.
|
||||
|
||||
NOTE: If the sensor always registers zero, try switching
|
||||
the static and dynamic tubes.
|
||||
type: float
|
||||
unit: Pa/V
|
||||
default: 0
|
||||
- group: Sensors
|
||||
definitions:
|
||||
|
||||
@@ -19,6 +19,7 @@ parameters:
|
||||
description:
|
||||
short: simulated barometer pressure offset
|
||||
type: float
|
||||
unit: Pa
|
||||
default: 0.0
|
||||
SIM_BARO_OFF_T:
|
||||
description:
|
||||
|
||||
@@ -93,6 +93,7 @@ parameters:
|
||||
MPC_VEL_MAX or MPC_VEL_MANUAL).
|
||||
If set to a negative value, the existing individual parameters are used.
|
||||
type: float
|
||||
unit: m/s
|
||||
default: -10.0
|
||||
min: -20
|
||||
max: 20
|
||||
|
||||
@@ -85,16 +85,19 @@ parameters:
|
||||
short: Accelerometer calibration reference temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 25.0
|
||||
TC_A0_TMIN:
|
||||
description:
|
||||
short: Accelerometer calibration minimum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 0.0
|
||||
TC_A0_TMAX:
|
||||
description:
|
||||
short: Accelerometer calibration maximum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 100.0
|
||||
@@ -85,16 +85,19 @@ parameters:
|
||||
short: Accelerometer calibration reference temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 25.0
|
||||
TC_A1_TMIN:
|
||||
description:
|
||||
short: Accelerometer calibration minimum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 0.0
|
||||
TC_A1_TMAX:
|
||||
description:
|
||||
short: Accelerometer calibration maximum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 100.0
|
||||
@@ -85,16 +85,19 @@ parameters:
|
||||
short: Accelerometer calibration reference temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 25.0
|
||||
TC_A2_TMIN:
|
||||
description:
|
||||
short: Accelerometer calibration minimum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 0.0
|
||||
TC_A2_TMAX:
|
||||
description:
|
||||
short: Accelerometer calibration maximum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 100.0
|
||||
@@ -85,16 +85,19 @@ parameters:
|
||||
short: Accelerometer calibration reference temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 25.0
|
||||
TC_A3_TMIN:
|
||||
description:
|
||||
short: Accelerometer calibration minimum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 0.0
|
||||
TC_A3_TMAX:
|
||||
description:
|
||||
short: Accelerometer calibration maximum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 100.0
|
||||
@@ -49,16 +49,19 @@ parameters:
|
||||
short: Barometer calibration reference temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 40.0
|
||||
TC_B0_TMIN:
|
||||
description:
|
||||
short: Barometer calibration minimum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 5.0
|
||||
TC_B0_TMAX:
|
||||
description:
|
||||
short: Barometer calibration maximum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 75.0
|
||||
@@ -49,16 +49,19 @@ parameters:
|
||||
short: Barometer calibration reference temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 40.0
|
||||
TC_B1_TMIN:
|
||||
description:
|
||||
short: Barometer calibration minimum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 5.0
|
||||
TC_B1_TMAX:
|
||||
description:
|
||||
short: Barometer calibration maximum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 75.0
|
||||
@@ -49,16 +49,19 @@ parameters:
|
||||
short: Barometer calibration reference temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 40.0
|
||||
TC_B2_TMIN:
|
||||
description:
|
||||
short: Barometer calibration minimum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 5.0
|
||||
TC_B2_TMAX:
|
||||
description:
|
||||
short: Barometer calibration maximum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 75.0
|
||||
@@ -49,16 +49,19 @@ parameters:
|
||||
short: Barometer calibration reference temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 40.0
|
||||
TC_B3_TMIN:
|
||||
description:
|
||||
short: Barometer calibration minimum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 5.0
|
||||
TC_B3_TMAX:
|
||||
description:
|
||||
short: Barometer calibration maximum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 75.0
|
||||
@@ -85,16 +85,19 @@ parameters:
|
||||
short: Gyro calibration reference temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 25.0
|
||||
TC_G0_TMIN:
|
||||
description:
|
||||
short: Gyro calibration minimum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 0.0
|
||||
TC_G0_TMAX:
|
||||
description:
|
||||
short: Gyro calibration maximum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 100.0
|
||||
@@ -85,16 +85,19 @@ parameters:
|
||||
short: Gyro calibration reference temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 25.0
|
||||
TC_G1_TMIN:
|
||||
description:
|
||||
short: Gyro calibration minimum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 0.0
|
||||
TC_G1_TMAX:
|
||||
description:
|
||||
short: Gyro calibration maximum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 100.0
|
||||
@@ -85,16 +85,19 @@ parameters:
|
||||
short: Gyro calibration reference temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 25.0
|
||||
TC_G2_TMIN:
|
||||
description:
|
||||
short: Gyro calibration minimum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 0.0
|
||||
TC_G2_TMAX:
|
||||
description:
|
||||
short: Gyro calibration maximum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 100.0
|
||||
@@ -85,16 +85,19 @@ parameters:
|
||||
short: Gyro calibration reference temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 25.0
|
||||
TC_G3_TMIN:
|
||||
description:
|
||||
short: Gyro calibration minimum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 0.0
|
||||
TC_G3_TMAX:
|
||||
description:
|
||||
short: Gyro calibration maximum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 100.0
|
||||
@@ -85,16 +85,19 @@ parameters:
|
||||
short: Magnetometer calibration reference temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 25.0
|
||||
TC_M0_TMIN:
|
||||
description:
|
||||
short: Magnetometer calibration minimum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 0.0
|
||||
TC_M0_TMAX:
|
||||
description:
|
||||
short: Magnetometer calibration maximum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 100.0
|
||||
@@ -85,16 +85,19 @@ parameters:
|
||||
short: Magnetometer calibration reference temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 25.0
|
||||
TC_M1_TMIN:
|
||||
description:
|
||||
short: Magnetometer calibration minimum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 0.0
|
||||
TC_M1_TMAX:
|
||||
description:
|
||||
short: Magnetometer calibration maximum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 100.0
|
||||
@@ -85,16 +85,19 @@ parameters:
|
||||
short: Magnetometer calibration reference temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 25.0
|
||||
TC_M2_TMIN:
|
||||
description:
|
||||
short: Magnetometer calibration minimum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 0.0
|
||||
TC_M2_TMAX:
|
||||
description:
|
||||
short: Magnetometer calibration maximum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 100.0
|
||||
@@ -85,16 +85,19 @@ parameters:
|
||||
short: Magnetometer calibration reference temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 25.0
|
||||
TC_M3_TMIN:
|
||||
description:
|
||||
short: Magnetometer calibration minimum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 0.0
|
||||
TC_M3_TMAX:
|
||||
description:
|
||||
short: Magnetometer calibration maximum temperature
|
||||
category: System
|
||||
type: float
|
||||
unit: celcius
|
||||
default: 100.0
|
||||
@@ -140,8 +140,9 @@ parameters:
|
||||
decimal: 2
|
||||
UUV_SP_MAX_AGE:
|
||||
description:
|
||||
short: Maximum time (in seconds) before resetting setpoint
|
||||
short: Maximum time before resetting setpoint
|
||||
type: float
|
||||
unit: s
|
||||
default: 2.0
|
||||
UUV_STICK_MODE:
|
||||
description:
|
||||
|
||||
@@ -38,6 +38,7 @@ parameters:
|
||||
long: maximum Height distance controlled by manual input. Diff between actual
|
||||
and desired Height cannot be higher than that
|
||||
type: float
|
||||
unit: m
|
||||
default: 0.3
|
||||
decimal: 2
|
||||
UUV_HGT_B_UP:
|
||||
|
||||
@@ -48,6 +48,7 @@ parameters:
|
||||
short: Target throttle value for the transition to fixed-wing flight
|
||||
long: Scaled by the square root of the weight ratio (WEIGHT_GROSS / WEIGHT_BASE).
|
||||
type: float
|
||||
unit: norm
|
||||
default: 1.0
|
||||
min: 0.0
|
||||
max: 1.0
|
||||
|
||||
Reference in new issue
Block a user