Browse Source

Tools: Added support for 1/s and kg/m/m parameter units

c415-sdk
Dr.-Ing. Amilcar do Carmo Lucas 4 years ago committed by Andrew Tridgell
parent
commit
fb8e1f4b9d
  1. 2
      Tools/autotest/param_metadata/param.py

2
Tools/autotest/param_metadata/param.py

@ -53,6 +53,7 @@ known_units = { @@ -53,6 +53,7 @@ known_units = {
'PWM' : 'PWM in microseconds' , # should be microseconds, this is NOT a SI unit, but follows https://github.com/ArduPilot/ardupilot/pull/5538#issuecomment-271943061
'Hz' : 'hertz' ,
'kHz' : 'kilohertz' ,
'1/s' : 'per second' , # Not SI but in some situations more user-friendly than hertz
# distance
'km' : 'kilometers' , # metre is the SI unit name, meter is the american spelling of it
'm' : 'meters' , # metre is the SI unit name, meter is the american spelling of it
@ -106,6 +107,7 @@ known_units = { @@ -106,6 +107,7 @@ known_units = {
'gravities': 'standard acceleration due to gravity' , # g_n would be a more correct unit, but IMHO no one understands what g_n means
'octal' : 'octal' ,
'RPM' : 'Revolutions Per Minute',
'kg/m/m' : 'kilograms per square meter', # metre is the SI unit name, meter is the american spelling of it
}
required_param_fields = [

Loading…
Cancel
Save