1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00

Enabled Instruction TCM

This commit is contained in:
Martin Budden 2017-12-17 09:57:00 +00:00
parent 7a7f1ceda5
commit de5b0d53ff
12 changed files with 222 additions and 22 deletions

View file

@ -482,7 +482,7 @@ void mixerResetDisarmedMotors(void)
}
}
FAST_CODE void writeMotors(void)
void writeMotors(void)
{
if (pwmAreMotorsEnabled()) {
for (int i = 0; i < motorCount; i++) {
@ -520,7 +520,7 @@ static FAST_RAM float motorRangeMax;
static FAST_RAM float motorOutputRange;
static FAST_RAM int8_t motorOutputMixSign;
static FAST_CODE void calculateThrottleAndCurrentMotorEndpoints(timeUs_t currentTimeUs)
static void calculateThrottleAndCurrentMotorEndpoints(timeUs_t currentTimeUs)
{
static uint16_t rcThrottlePrevious = 0; // Store the last throttle direction for deadband transitions
static timeUs_t reversalTimeUs = 0; // time when motors last reversed in 3D mode
@ -637,7 +637,7 @@ static void applyFlipOverAfterCrashModeToMotors(void)
}
}
static FAST_CODE void applyMixToMotors(float motorMix[MAX_SUPPORTED_MOTORS])
static void applyMixToMotors(float motorMix[MAX_SUPPORTED_MOTORS])
{
// Now add in the desired throttle, but keep in a range that doesn't clip adjusted
// roll/pitch/yaw. This could move throttle down, but also up for those low throttle flips.
@ -668,7 +668,7 @@ static FAST_CODE void applyMixToMotors(float motorMix[MAX_SUPPORTED_MOTORS])
}
}
FAST_CODE void mixTable(timeUs_t currentTimeUs, uint8_t vbatPidCompensation)
void mixTable(timeUs_t currentTimeUs, uint8_t vbatPidCompensation)
{
if (isFlipOverAfterCrashMode()) {
applyFlipOverAfterCrashModeToMotors();