Skip to content

Commit

Permalink
fix saitek quadrant axis
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjarv committed Mar 17, 2018
1 parent 90f8f13 commit 109938e
Show file tree
Hide file tree
Showing 31 changed files with 479 additions and 5 deletions.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class SaitekProFlightThrottleQuadrant : MonoBehaviour {

public GameObject Throttle;
public GameObject Mixture;
public GameObject Flaps;
public GameObject Prop;

// Use this for initialization
void Start()
Expand Down Expand Up @@ -43,13 +43,13 @@ void StickEvent(JoystickState state)
break;

case "X":
Throttle.transform.localEulerAngles = new Vector3(ConvertRange(entry.Value, 0, 65535, 40, 0), 0, 0);
Throttle.transform.localEulerAngles = new Vector3(ConvertRange(entry.Value, 65535, 0, -90, 0), 0, 0);
break;
case "Y":
Mixture.transform.localEulerAngles = new Vector3(ConvertRange(entry.Value, 0, 65535, 40, 0), 0, 0);
Mixture.transform.localEulerAngles = new Vector3(ConvertRange(entry.Value, 65535, 0, -90, 0), 0, 0);
break;
case "Z":
Flaps.transform.localEulerAngles = new Vector3(ConvertRange(entry.Value, 0, 65535, 40, 0), 0, 0);
Prop.transform.localEulerAngles = new Vector3(ConvertRange(entry.Value, 65535, 0, -90, 0), 0, 0);
break;
}
}
Expand Down
Binary file added JoystickVisualizer/Assets/Dome.blend
Binary file not shown.
Loading

0 comments on commit 109938e

Please sign in to comment.