Tools: allow Ohm units in parameters

This commit is contained in:
Andrew Tridgell 2023-10-05 19:11:47 +11:00
parent e9fc3ab570
commit 65099d0626
2 changed files with 2 additions and 1 deletions

View File

@ -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 = [

View File

@ -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),