mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 03:03:34 +08:00
Hotfix: ensure PWM output on IO and FMU stops when disarming
This commit is contained in:
@@ -299,8 +299,12 @@ up_pwm_servo_arm(bool armed)
|
|||||||
rCR1(i) |= GTIM_CR1_CEN | GTIM_CR1_ARPE;
|
rCR1(i) |= GTIM_CR1_CEN | GTIM_CR1_ARPE;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/* on disarm, just stop auto-reload so we don't generate runts */
|
// XXX This leads to FMU PWM being still active
|
||||||
rCR1(i) &= ~GTIM_CR1_ARPE;
|
// but uncontrollable. Just disable the timer
|
||||||
|
// and risk a runt.
|
||||||
|
///* on disarm, just stop auto-reload so we don't generate runts */
|
||||||
|
//rCR1(i) &= ~GTIM_CR1_ARPE;
|
||||||
|
rCR1(i) = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user