summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-08-25 06:18:44 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-08-25 06:18:44 +0200
commit08f805cf0f91d1b2c7563cc6ff69b97a9ecb7870 (patch)
treeb065ef7a3153f976dbb7ec40da4014b2adfe5737 /logic
parent880fa0315b12f6bdb71a6f641ef5d024a22c4e85 (diff)
logic/pipeline: fix warning, tab to spaces
Diffstat (limited to 'logic')
-rw-r--r--logic/pipeline.cpp3
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;
}
}