make the absolute head yaw getter const

This commit is contained in:
Stephen Birarda 2013-04-26 11:22:42 -07:00
parent fbdcd57529
commit 7c855464e1
2 changed files with 2 additions and 2 deletions

View file

@ -275,7 +275,7 @@ void Avatar::UpdateGyros(float frametime, SerialInterface * serialInterface, glm
addLean(-measured_lateral_accel * frametime * HEAD_LEAN_SCALE, -measured_fwd_accel*frametime * HEAD_LEAN_SCALE);
}
float Avatar::getAbsoluteHeadYaw() {
float Avatar::getAbsoluteHeadYaw() const {
return _bodyYaw + _headYaw;
}

View file

@ -178,7 +178,7 @@ public:
float getBodyYaw() {return _bodyYaw;};
void addBodyYaw(float y) {_bodyYaw += y;};
float getAbsoluteHeadYaw();
float getAbsoluteHeadYaw() const;
void setLeanForward(float dist);
void setLeanSideways(float dist);
void addLean(float x, float z);