mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Delayed motor PWM enable when using Oneshot
This commit is contained in:
parent
d1d73d933e
commit
bbb86b30fa
4 changed files with 13 additions and 4 deletions
|
@ -97,6 +97,8 @@ uint16_t cycleTime = 0; // this is the number in micro second to achieve
|
|||
int16_t magHold;
|
||||
int16_t headFreeModeHold;
|
||||
|
||||
uint8_t motorControlEnable = false;
|
||||
|
||||
int16_t telemTemperature1; // gyro sensor temperature
|
||||
static uint32_t disarmAt; // Time of automatic disarm when "Don't spin the motors when armed" is enabled and auto_disarm_delay is nonzero
|
||||
|
||||
|
@ -801,7 +803,9 @@ void loop(void)
|
|||
writeServos();
|
||||
#endif
|
||||
|
||||
writeMotors();
|
||||
if (motorControlEnable) {
|
||||
writeMotors();
|
||||
}
|
||||
|
||||
#ifdef BLACKBOX
|
||||
if (!cliMode && feature(FEATURE_BLACKBOX)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue