Skip to content

Commit

Permalink
added Radiomaster Boxer support for rc_joy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bsutherland333 committed Mar 13, 2024
1 parent e1c631f commit 7110aba
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions rosflight_sim/src/rc_joy.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,17 @@ class Channel(Enum):
config['TX16S'][Channel.SW3] = lambda j: j.get_axis(6)
config['TX16S'][Channel.SW4] = lambda j: 0

config['Boxer'] = {}
config['Boxer']['keys'] = ['OpenTX Radiomaster Boxer Joystick']
config['Boxer'][Channel.AIL] = lambda j: j.get_axis(0)
config['Boxer'][Channel.ELV] = lambda j: j.get_axis(1)
config['Boxer'][Channel.THR] = lambda j: j.get_axis(2)
config['Boxer'][Channel.RUD] = lambda j: j.get_axis(3)
config['Boxer'][Channel.SW1] = lambda j: j.get_axis(4)
config['Boxer'][Channel.SW2] = lambda j: j.get_axis(5)
config['Boxer'][Channel.SW3] = lambda j: j.get_axis(6)
config['Boxer'][Channel.SW4] = lambda j: 0


class RCJoy(Node):
def __init__(self):
Expand Down

0 comments on commit 7110aba

Please sign in to comment.