Browse Source

Change orbital mode

Mark Mine 23 years ago
parent
commit
fcadfa3d40
1 changed files with 2 additions and 2 deletions
  1. 2 2
      direct/src/directdevices/DirectJoybox.py

+ 2 - 2
direct/src/directdevices/DirectJoybox.py

@@ -369,9 +369,9 @@ class DirectJoybox(PandaObject):
                     DirectJoybox.hprMultiplier)
                     DirectJoybox.hprMultiplier)
         posScale = (self.normalizeChannel(R_SLIDE, 0.1, 100) *
         posScale = (self.normalizeChannel(R_SLIDE, 0.1, 100) *
                     DirectJoybox.xyzMultiplier)
                     DirectJoybox.xyzMultiplier)
-        r = -0.01 * posScale * self.aList[R_FWD_BACK] * self.deltaTime
+        r = -0.01 * posScale * self.aList[R_TWIST] * self.deltaTime
         rx = hprScale * self.aList[R_LEFT_RIGHT] * self.deltaTime
         rx = hprScale * self.aList[R_LEFT_RIGHT] * self.deltaTime
-        ry = hprScale * self.aList[R_TWIST] * self.deltaTime
+        ry = -hprScale * self.aList[R_FWD_BACK] * self.deltaTime
         x = posScale * self.aList[L_LEFT_RIGHT] * self.deltaTime
         x = posScale * self.aList[L_LEFT_RIGHT] * self.deltaTime
         z = posScale * self.aList[L_FWD_BACK] * self.deltaTime
         z = posScale * self.aList[L_FWD_BACK] * self.deltaTime
         h = -1 * hprScale * self.aList[L_TWIST] * self.deltaTime
         h = -1 * hprScale * self.aList[L_TWIST] * self.deltaTime