mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 02:13:33 +08:00
L1_pos_controller: Fixed strange bitwise or
This commit is contained in:
@@ -280,7 +280,7 @@ void ECL_L1_Pos_Controller::navigate_loiter(const math::Vector2f &vector_A, cons
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// XXX check switch over
|
// XXX check switch over
|
||||||
if ((lateral_accel_sp_center < lateral_accel_sp_circle && loiter_direction > 0 && xtrack_err_circle > 0.0f) |
|
if ((lateral_accel_sp_center < lateral_accel_sp_circle && loiter_direction > 0 && xtrack_err_circle > 0.0f) ||
|
||||||
(lateral_accel_sp_center > lateral_accel_sp_circle && loiter_direction < 0 && xtrack_err_circle > 0.0f)) {
|
(lateral_accel_sp_center > lateral_accel_sp_circle && loiter_direction < 0 && xtrack_err_circle > 0.0f)) {
|
||||||
_lateral_accel = lateral_accel_sp_center;
|
_lateral_accel = lateral_accel_sp_center;
|
||||||
_circle_mode = false;
|
_circle_mode = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user