don't move user view with their gyro, temporarily hide hand

This commit is contained in:
Stephen Birarda 2013-02-22 16:43:41 -08:00
parent 88cac51c0c
commit a20a162502
2 changed files with 6 additions and 3 deletions

View file

@ -361,7 +361,7 @@ void Head::parseData(void *data, int size) {
&position.x, &position.y, &position.z,
&loudness, &averageLoudness,
&handPos.x, &handPos.y, &handPos.z);
if (glm::length(handPos) > 0.0) hand->setPos(handPos);
// if (glm::length(handPos) > 0.0) hand->setPos(handPos);
}
void Head::SetNewHeadTarget(float pitch, float yaw)

View file

@ -393,8 +393,11 @@ 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);