summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-02-05 09:54:39 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-02-05 10:18:44 +0100
commit3188860effef87b1f7e180214efa1a835d49517c (patch)
treeea90fa62d5d3de2dff53add0cc6f54565f93bf50 /logic
parent3b3021b771b2470575344a47ea9a669b1bf85de9 (diff)
logic/pipeline: enlarge aiming-reltrans limits
Diffstat (limited to 'logic')
-rw-r--r--logic/pipeline.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp
index 7d737092..52dbac88 100644
--- a/logic/pipeline.cpp
+++ b/logic/pipeline.cpp
@@ -75,11 +75,10 @@ Pose reltrans::apply_pipeline(reltrans_state state, const Pose& value, const Mat
bool tcomp_in_zone_ = progn(
if (state == reltrans_non_center)
{
- const bool yaw_in_zone = std::fabs(value(Yaw)) < 20;
- const bool pitch_in_zone = std::fabs(value(Pitch)) < 20;
- const bool roll_in_zone = std::fabs(value(Roll)) < 7;
+ const bool yaw_in_zone = std::fabs(value(Yaw)) < 50;
+ const bool pitch_in_zone = std::fabs(value(Pitch)) < 40;
- return !(yaw_in_zone && pitch_in_zone && roll_in_zone);
+ return !(yaw_in_zone && pitch_in_zone);
}
else
return true;