mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tools: allow Ohm units in parameters
This commit is contained in:
parent
e9fc3ab570
commit
65099d0626
@ -129,6 +129,7 @@ known_units = {
|
|||||||
'kg/m/m' : 'kilograms per square meter', # metre is the SI unit name, meter is the american spelling of it
|
'kg/m/m' : 'kilograms per square meter', # metre is the SI unit name, meter is the american spelling of it
|
||||||
'kg/m/m/m': 'kilograms per cubic meter',
|
'kg/m/m/m': 'kilograms per cubic meter',
|
||||||
'litres' : 'litres',
|
'litres' : 'litres',
|
||||||
|
'Ohm' : 'Ohm',
|
||||||
}
|
}
|
||||||
|
|
||||||
required_param_fields = [
|
required_param_fields = [
|
||||||
|
@ -89,7 +89,7 @@ const AP_Param::GroupInfo AP_BattMonitor_INA2XX::var_info[] = {
|
|||||||
// @Param: SHUNT
|
// @Param: SHUNT
|
||||||
// @DisplayName: Battery monitor shunt resistor
|
// @DisplayName: Battery monitor shunt resistor
|
||||||
// @Description: This sets the shunt resistor used in the device
|
// @Description: This sets the shunt resistor used in the device
|
||||||
// @Range: 0.0001 to 0.01
|
// @Range: 0.0001 0.01
|
||||||
// @Units: Ohm
|
// @Units: Ohm
|
||||||
// @User: Advanced
|
// @User: Advanced
|
||||||
AP_GROUPINFO("SHUNT", 28, AP_BattMonitor_INA2XX, rShunt, DEFAULT_BATTMON_INA2XX_SHUNT),
|
AP_GROUPINFO("SHUNT", 28, AP_BattMonitor_INA2XX, rShunt, DEFAULT_BATTMON_INA2XX_SHUNT),
|
||||||
|
Loading…
Reference in New Issue
Block a user