summaryrefslogtreecommitdiffhomepage
path: root/proto-fsuipc
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-08 13:04:32 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-09 10:49:54 +0200
commit10a469b7adc6bec2ef8c0a043e789bf60e959168 (patch)
tree528b06f2649b2c875ab793c4cd0c800fe9d1ae19 /proto-fsuipc
parent01631d777fba7662a7f28d8a0c9a03136d982095 (diff)
proto/fsuipc: fix "64/50" expanding to "1"
This is a POLA violation.
Diffstat (limited to 'proto-fsuipc')
-rw-r--r--proto-fsuipc/ftnoir_protocol_fsuipc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto-fsuipc/ftnoir_protocol_fsuipc.cpp b/proto-fsuipc/ftnoir_protocol_fsuipc.cpp
index 82cb44e9..bd6349e1 100644
--- a/proto-fsuipc/ftnoir_protocol_fsuipc.cpp
+++ b/proto-fsuipc/ftnoir_protocol_fsuipc.cpp
@@ -114,10 +114,10 @@ void FTNoIR_Protocol::pose(const double *headpose ) {
yaw.Value = scale2AnalogLimits(virtRotY, -180., 180.);
FSUIPC_Write(0x3110, 8, &yaw, &result);
- FSZoom = (WORD) (64/50) * virtPosZ + 64;
roll.Value = scale2AnalogLimits(virtRotZ, -180., 180.);
FSUIPC_Write(0x3110, 8, &roll, &result);
+ FSZoom = WORD(virtPosZ + 64);
FSUIPC_Write(0x832E, 2, &FSZoom, &result);
//