Skip to content

Commit f03d844

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 232b264 + 5649766 commit f03d844

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/main/blackbox/blackbox.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1727,9 +1727,10 @@ static void loadMainState(timeUs_t currentTimeUs)
17271727

17281728
blackboxCurrent->rssi = getRSSI();
17291729

1730+
const uint8_t minServoIndex = getMinServoIndex();
17301731
const int servoCount = getServoCount();
17311732
for (int i = 0; i < servoCount; i++) {
1732-
blackboxCurrent->servo[i] = servo[i];
1733+
blackboxCurrent->servo[i] = servo[i + minServoIndex];
17331734
}
17341735

17351736
blackboxCurrent->navState = navCurrentState;

src/main/flight/servos.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,3 +683,8 @@ bool isMixerUsingServos(void)
683683
{
684684
return mixerUsesServos;
685685
}
686+
687+
uint8_t getMinServoIndex(void)
688+
{
689+
return minServoIndex;
690+
}

src/main/flight/servos.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,4 @@ void servoMixer(float dT);
182182
void servoComputeScalingFactors(uint8_t servoIndex);
183183
void servosInit(void);
184184
int getServoCount(void);
185+
uint8_t getMinServoIndex(void);

0 commit comments

Comments
 (0)