mirror of https://github.com/ArduPilot/ardupilot
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/m': 'kilograms per cubic meter',
|
||||
'litres' : 'litres',
|
||||
'Ohm' : 'Ohm',
|
||||
}
|
||||
|
||||
required_param_fields = [
|
||||
|
|
|
@ -89,7 +89,7 @@ const AP_Param::GroupInfo AP_BattMonitor_INA2XX::var_info[] = {
|
|||
// @Param: SHUNT
|
||||
// @DisplayName: Battery monitor shunt resistor
|
||||
// @Description: This sets the shunt resistor used in the device
|
||||
// @Range: 0.0001 to 0.01
|
||||
// @Range: 0.0001 0.01
|
||||
// @Units: Ohm
|
||||
// @User: Advanced
|
||||
AP_GROUPINFO("SHUNT", 28, AP_BattMonitor_INA2XX, rShunt, DEFAULT_BATTMON_INA2XX_SHUNT),
|
||||
|
|
Loading…
Reference in New Issue