Skip to content

Commit

Permalink
mavproxy_joystick: Improve scale for axis
Browse files Browse the repository at this point in the history
  • Loading branch information
robinfru authored and tridge committed Nov 17, 2023
1 parent b577fcb commit b7021c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_joystick/controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def value(self):
if self.invert:
val = -val

return scale(val, outlow=self.outlow, outhigh=self.outhigh)
return scale(val, inlow=self.inlow, inhigh=self.inhigh, outlow=self.outlow, outhigh=self.outhigh)


class Hat (Control):
Expand Down

0 comments on commit b7021c3

Please sign in to comment.