mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 05:23:35 +08:00
Fix max-hagl restriction to position/altitude control (#23667)
* fix max-hagl restriction to position/altitude control * max hagl vel restriction in ManAcc position mode * use interpolate func, change naming * simplyfied vertical vel limitation * move velocity-constraint adjustment to StickAccelXY
This commit is contained in:
@@ -2738,7 +2738,8 @@ MavlinkReceiver::handle_message_hil_state_quaternion(mavlink_message_t *msg)
|
||||
hil_local_pos.vxy_max = INFINITY;
|
||||
hil_local_pos.vz_max = INFINITY;
|
||||
hil_local_pos.hagl_min = INFINITY;
|
||||
hil_local_pos.hagl_max = INFINITY;
|
||||
hil_local_pos.hagl_max_z = INFINITY;
|
||||
hil_local_pos.hagl_max_xy = INFINITY;
|
||||
hil_local_pos.timestamp = hrt_absolute_time();
|
||||
_local_pos_pub.publish(hil_local_pos);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user