Skip to content

Commit

Permalink
Less slewing but half pitch
Browse files Browse the repository at this point in the history
  • Loading branch information
Dell Competition Laptop committed Feb 22, 2025
1 parent 0fdc2f4 commit f3e0ef7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def joystick_to_pixhawk(self, msg: Joy) -> None:
lateral=-float(axes[self.profile.lateral]),
vertical=float(axes[self.profile.vertical_down] - axes[self.profile.vertical_up]) / 2,
roll=float(buttons[self.profile.roll_left] - buttons[self.profile.roll_right]),
pitch=float(axes[self.profile.pitch]),
pitch=float(axes[self.profile.pitch] / 2),
yaw=-float(axes[self.profile.yaw]),
author=PixhawkInstruction.MANUAL_CONTROL,
)
Expand Down
4 changes: 2 additions & 2 deletions src/surface/flight_control/flight_control/multiplexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@

EXTENSIONS_CODE: Final = 0b00000011

NEXT_INSTR_FRAC: Final = 0.05
NEXT_INSTR_FRAC: Final = 0.1
PREV_INSTR_FRAC: Final = 1 - NEXT_INSTR_FRAC
INSTR_EPSILON: Final = 0.05
INSTR_EPSILON: Final = 0.1


def joystick_map(raw: float) -> float:
Expand Down

0 comments on commit f3e0ef7

Please sign in to comment.