modal_io: add rpm unit to parameters (#21473)

This commit is contained in:
Eric Katzfey 2023-04-17 22:41:45 -07:00 committed by GitHub
parent 89a00f9505
commit 73db1a02ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -82,6 +82,7 @@ PARAM_DEFINE_INT32(MODAL_IO_BAUD, 250000);
* Minimum RPM for ESC
*
* @group MODAL IO
* @unit rpm
*/
PARAM_DEFINE_INT32(MODAL_IO_RPM_MIN, 5500);
@ -91,6 +92,7 @@ PARAM_DEFINE_INT32(MODAL_IO_RPM_MIN, 5500);
* Maximum RPM for ESC
*
* @group MODAL IO
* @unit rpm
*/
PARAM_DEFINE_INT32(MODAL_IO_RPM_MAX, 15000);

View File

@ -364,7 +364,7 @@ class SourceParser(object):
'S', 'A/%', '(m/s^2)^2', 'm/m', 'tan(rad)^2', '(m/s)^2', 'm/rad',
'm/s^3/sqrt(Hz)', 'm/s/sqrt(Hz)', 's/(1000*PWM)', '%m/s', 'min', 'us/C',
'N/(m/s)', 'Nm/rad', 'Nm/(rad/s)', 'Nm', 'N',
'RPM',
'rpm',
'normalized_thrust/s', 'normalized_thrust', 'norm', 'SD',''])
for group in self.GetParamGroups():
for param in group.GetParams():

View File

@ -154,6 +154,7 @@ parameters:
'S', 'A/%', '(m/s^2)^2', 'm/m', 'tan(rad)^2', '(m/s)^2', 'm/rad',
'm/s^3/sqrt(Hz)', 'm/s/sqrt(Hz)', 's/(1000*PWM)', '%m/s', 'min', 'us/C',
'N/(m/s)', 'Nm/(rad/s)', 'Nm', 'N',
'rpm',
'normalized_thrust/s', 'normalized_thrust', 'norm', 'SD']
bit:
# description of all bits for type bitmask.