mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-13 11:29:56 +03:00
Update mixer.c
This commit is contained in:
parent
93223782fb
commit
773d3ad14d
1 changed files with 2 additions and 1 deletions
|
@ -264,7 +264,7 @@ void mixerResetDisarmedMotors(void)
|
||||||
motor_disarmed[i] = motorZeroCommand;
|
motor_disarmed[i] = motorZeroCommand;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if !defined(SITL_BUILD)
|
||||||
static uint16_t handleOutputScaling(
|
static uint16_t handleOutputScaling(
|
||||||
int16_t input, // Input value from the mixer
|
int16_t input, // Input value from the mixer
|
||||||
int16_t stopThreshold, // Threshold value to check if motor should be rotating or not
|
int16_t stopThreshold, // Threshold value to check if motor should be rotating or not
|
||||||
|
@ -289,6 +289,7 @@ static uint16_t handleOutputScaling(
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#ifdef USE_DSHOT
|
#ifdef USE_DSHOT
|
||||||
static void applyTurtleModeToMotors(void) {
|
static void applyTurtleModeToMotors(void) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue