1
0
Fork 0
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:
ProDrone 2015-05-22 00:30:29 +02:00
parent d1d73d933e
commit bbb86b30fa
4 changed files with 13 additions and 4 deletions

View file

@ -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)) {