From 7d244bbd4525b957b4c2cce4b08caa32281d7121 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 22 Feb 2013 16:17:07 -0800 Subject: [PATCH] don't allow gyro to move user head for themselves --- interface/src/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/interface/src/main.cpp b/interface/src/main.cpp index 7ff9b91301..6c0c831033 100644 --- a/interface/src/main.cpp +++ b/interface/src/main.cpp @@ -393,8 +393,12 @@ void reset_sensors() void update_pos(float frametime) // Using serial data, update avatar/render position and angles { - float measured_pitch_rate = serialPort.getRelativeValue(PITCH_RATE); - float measured_yaw_rate = serialPort.getRelativeValue(YAW_RATE); +// float measured_pitch_rate = serialPort.getRelativeValue(PITCH_RATE); +// float measured_yaw_rate = serialPort.getRelativeValue(YAW_RATE); + + float measured_pitch_rate = 0; + float measured_yaw_rate = 0; + //float measured_lateral_accel = serialPort.getRelativeValue(ACCEL_X); //float measured_fwd_accel = serialPort.getRelativeValue(ACCEL_Z);