diff options
Diffstat (limited to 'logic/pipeline.cpp')
-rw-r--r-- | logic/pipeline.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp index f8827b7e..171c7016 100644 --- a/logic/pipeline.cpp +++ b/logic/pipeline.cpp @@ -310,7 +310,7 @@ void pipeline::maybe_set_center_pose(const centering_state mode, const Pose& val Pose pipeline::apply_center(const centering_state mode, Pose value) const { if (mode != center_disabled) - { + { for (unsigned k = TX; k <= TZ; k++) value(k) -= center.P(k); @@ -342,6 +342,7 @@ Pose pipeline::apply_center(const centering_state mode, Pose value) const value[Yaw] = v.y(); value[Roll] = -v.z(); break; + case center_disabled: break; } } |