diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-06-27 16:06:34 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-06-27 16:07:18 +0200 |
commit | 9edc4683ecd75d4705aca13217779e3c1a721913 (patch) | |
tree | 6e1336679d023efde7047fd6e1267272e7c42557 /ftnoir_protocol_ft/ftnoir_protocol_ft.cpp | |
parent | 21f76439ae4c918184d00f41e89bb32c8633ba1d (diff) |
Rename R[XYZ] to Yaw, Pitch, Roll to avoid confusion
Requested-by: mm0zct
Diffstat (limited to 'ftnoir_protocol_ft/ftnoir_protocol_ft.cpp')
-rw-r--r-- | ftnoir_protocol_ft/ftnoir_protocol_ft.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp index 3108f0d7..1ee8b49e 100644 --- a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp +++ b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp @@ -129,16 +129,16 @@ float headRotZ; //
// Scale the Raw measurements to the client measurements.
//
- headRotX = getRadsFromDegrees(headpose[RY]);
- headRotY = getRadsFromDegrees(headpose[RX]);
- headRotZ = getRadsFromDegrees(headpose[RZ]);
+ headRotX = getRadsFromDegrees(headpose[Pitch]);
+ headRotY = getRadsFromDegrees(headpose[Yaw]);
+ headRotZ = getRadsFromDegrees(headpose[Roll]);
headPosX = headpose[TX] * 10;
headPosY = headpose[TY] * 10;
headPosZ = headpose[TZ] * 10;
- virtRotX = getRadsFromDegrees(headpose[RY]);
- virtRotY = getRadsFromDegrees(headpose[RX]);
- virtRotZ = getRadsFromDegrees(headpose[RZ]);
+ virtRotX = getRadsFromDegrees(headpose[Pitch]);
+ virtRotY = getRadsFromDegrees(headpose[Yaw]);
+ virtRotZ = getRadsFromDegrees(headpose[Roll]);
virtPosX = headpose[TX] * 10;
virtPosY = headpose[TY] * 10;
virtPosZ = headpose[TZ] * 10;
|