Skip to content

Commit

Permalink
RADIX: remove 2nd motor for AIRPLANE
Browse files Browse the repository at this point in the history
  • Loading branch information
mluessi committed Sep 26, 2019
1 parent 61e4873 commit bdfcb3f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/flight/mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ void mixerUpdateStateFlags(void)

void mixerInit(void)
{
#if defined(RADIX)
// Disable 2nd motor for airplane
if (mixerConfig()->platformType == PLATFORM_AIRPLANE) {
primaryMotorMixerMutable(1)->throttle = 0.0f;
}
#endif

computeMotorCount();
loadPrimaryMotorMixer();
// in 3D mode, mixer gain has to be halved
Expand Down Expand Up @@ -416,4 +423,4 @@ void loadPrimaryMotorMixer(void) {
for (int i = 0; i < MAX_SUPPORTED_MOTORS; i++) {
currentMixer[i] = *primaryMotorMixer(i);
}
}
}

0 comments on commit bdfcb3f

Please sign in to comment.