Commits

Patrick Bouffard committed 6468f51 Draft

soft_joystick: fix polarity of roll axis slider

  • Participants
  • Parent commits 85c92b1

Comments (0)

Files changed (1)

File starmac_ground/starmac_gui/nodes/soft_joystick.py

                    self.ui.button_10, self.ui.button_11)
         joy_msg.buttons = [b.isChecked() for b in buttons]
         joy_msg.axes = [mult*s.value()/100.0 for s, mult in 
-                        zip((self.ui.rollSlider, self.ui.pitchSlider, self.ui.yawSlider, self.ui.altSlider), (1.0, 1.0, -1.0, 1.0))]
+                        zip((self.ui.rollSlider, self.ui.pitchSlider, self.ui.yawSlider, self.ui.altSlider), (-1.0, 1.0, -1.0, 1.0))]
         for label, value in zip((self.ui.rollLabel, self.ui.pitchLabel, self.ui.yawLabel, self.ui.altLabel), joy_msg.axes):
             label.setText('%0.2f' % value)