From 0ddcf4eb94fa4ee530702bca2c54e390b3c6057d Mon Sep 17 00:00:00 2001 From: GO63-samara Date: Sun, 25 Apr 2021 22:52:08 +0400 Subject: Fixed operation of the [Toggle] and [Toggle while held] buttons This fix eliminate incorrect rotation and movement of the Octopus when the view is turned off with the [Toggle] or [Toggle while held] buttons. --- logic/pipeline.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'logic') diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp index e6f82063..658c62bb 100644 --- a/logic/pipeline.cpp +++ b/logic/pipeline.cpp @@ -465,7 +465,8 @@ ok: for (int i = 0; i < 6; i++) value(i) = 0; - value = apply_zero_pos(value); + if (hold_ordered) value = output_pose; + else value = apply_zero_pos(value); ev.run_events(EV::ev_finished, value); libs.pProtocol->pose(value, raw); -- cgit v1.2.3