Firmware
Functions
motor_params.c File Reference

Parameters for motors. More...

Functions

 PARAM_DEFINE_FLOAT (MOT_SLEW_MAX, 0.0f)
 Minimum motor rise time (slew rate limit). More...
 
 PARAM_DEFINE_FLOAT (THR_MDL_FAC, 0.0f)
 Thrust to PWM model parameter. More...
 

Detailed Description

Parameters for motors.

Function Documentation

§ PARAM_DEFINE_FLOAT() [1/2]

PARAM_DEFINE_FLOAT ( MOT_SLEW_MAX  ,
0.  0f 
)

Minimum motor rise time (slew rate limit).

Minimum time allowed for the motor input signal to pass through a range of 1000 PWM units. A value x means that the motor signal can only go from 1000 to 2000 PWM in maximum x seconds.

Zero means that slew rate limiting is disabled.

0.0 s/(1000*PWM) PWM Outputs

§ PARAM_DEFINE_FLOAT() [2/2]

PARAM_DEFINE_FLOAT ( THR_MDL_FAC  ,
0.  0f 
)

Thrust to PWM model parameter.

Parameter used to model the relationship between static thrust and motor input PWM. Model is: thrust = (1-factor)*PWM + factor * PWM^2

0.0 1.0 PWM Outputs