Skip to content

Commit

Permalink
frontend: fix off-by-8 issue with pixhawk channels
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani authored and patrickelectric committed Jul 9, 2024
1 parent 8979e5f commit d065f28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default function toBoardFriendlyChannel(board: string | undefined, servo:
const servo_number = parseInt(servo.replace('SERVO', '').replace('_FUNCTION', ''), 10)
if (board === Platform.Pixhawk1) {
if (servo_number >= 9) {
return `Aux ${servo_number}`
return `Aux ${servo_number - 8}`
}
}
return `Channel ${servo_number}`
Expand Down

0 comments on commit d065f28

Please sign in to comment.