mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-14 14:40:35 +08:00
Tilt-Hex Pos-Ctrl: (WIP) Started code for attitude setpoint generation for omni vehicles
This commit is contained in:
@@ -910,6 +910,8 @@ MulticopterPositionControl::limit_thrust_during_landing(vehicle_attitude_setpoin
|
||||
if (_vehicle_land_detected.ground_contact
|
||||
|| _vehicle_land_detected.maybe_landed) {
|
||||
// we set the collective thrust to zero, this will help to decide if we are actually landed or not
|
||||
setpoint.thrust_body[0] = 0.f;
|
||||
setpoint.thrust_body[1] = 0.f;
|
||||
setpoint.thrust_body[2] = 0.f;
|
||||
// go level to avoid corrections but keep the heading we have
|
||||
Quatf(AxisAngle<float>(0, 0, _states.yaw)).copyTo(setpoint.q_d);
|
||||
|
||||
Reference in New Issue
Block a user