Skip to content

Commit

Permalink
fix merge errors
Browse files Browse the repository at this point in the history
  • Loading branch information
breadoven committed Sep 13, 2023
1 parent 8b59f82 commit ed22b50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/main/flight/mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ void FAST_CODE mixTable(void)
throttleMin = MIN(throttleMin + (rpyMixRange / 2), throttleMin + (throttleRange / 2) - (throttleRange * THROTTLE_CLIPPING_FACTOR / 2));
throttleMax = MAX(throttleMax - (rpyMixRange / 2), throttleMin + (throttleRange / 2) + (throttleRange * THROTTLE_CLIPPING_FACTOR / 2));
}
// CR106

// 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.
for (int i = 0; i < motorCount; i++) {
Expand All @@ -618,10 +618,9 @@ void FAST_CODE mixTable(void)
motor[i] = constrain(motor[i], throttleRangeMin, throttleRangeMax);
}
}
// CR106
}

int16_t getThrottlePercent(bool useScaled) // CR106 should use actual throttle sent to motors not throttle stick position
int16_t getThrottlePercent(bool useScaled)
{
int16_t thr = constrain(mixerThrottleCommand, PWM_RANGE_MIN, PWM_RANGE_MAX);

Expand Down
2 changes: 1 addition & 1 deletion src/main/io/osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ static const char * osdArmingDisabledReasonMessage(void)
switch (isArmingDisabledReason()) {
case ARMING_DISABLED_FAILSAFE_SYSTEM:
// See handling of FAILSAFE_RX_LOSS_MONITORING in failsafe.c
if (failsafePhase() == FAILSAFE_RX_LOSS_MONITORING) { // CR109
if (failsafePhase() == FAILSAFE_RX_LOSS_MONITORING) {
if (failsafeIsReceivingRxData()) {
// reminder to disarm to exit FAILSAFE_RX_LOSS_MONITORING once timeout period ends
if (IS_RC_MODE_ACTIVE(BOXARM)) {
Expand Down

0 comments on commit ed22b50

Please sign in to comment.