mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 01:43:34 +08:00
add migration formula
This commit is contained in:
@@ -654,6 +654,9 @@ For each of the tilt servos:
|
||||
- Standard VTOL : Motors defined as multicopter motors will be turned off
|
||||
- Tiltrotors : Motors that have no associated tilt servo will turn off
|
||||
- Tailsitters do not turn off any motors in fixed-wing flight
|
||||
- The following formula can be used to migrate from surface trim to PWM trim:
|
||||
|
||||
`PWM_MAIN_TRIMx = ((PWM_MAX - PWM_MIN) / 2) * CA_SV_CSx_TRIM + TRIM_MIN + ((PWM_MAX - PWM_MIN) / 2)`
|
||||
|
||||
### Reversing Motors
|
||||
|
||||
|
||||
+2
-1
@@ -80,7 +80,8 @@ void ActuatorEffectivenessControlSurfaces::updateParams()
|
||||
snprintf(param_name, sizeof(param_name), "%s_TRIM%d", prefix, channel);
|
||||
param_t param = param_find(param_name);
|
||||
|
||||
if (param != PARAM_INVALID) {
|
||||
if (param != PARAM_INVALID)
|
||||
{
|
||||
int32_t value;
|
||||
return (param_get(param, &value) == PX4_OK && value != 1500);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user