PositionControl: publish NAN jerk

because the controller does not read or write jerk
This commit is contained in:
Matthias Grob
2022-04-06 17:38:37 +02:00
parent 5055fec796
commit cb484c5ac7
2 changed files with 2 additions and 1 deletions
@@ -246,6 +246,7 @@ void PositionControl::getLocalPositionSetpoint(vehicle_local_position_setpoint_s
local_position_setpoint.vy = _vel_sp(1);
local_position_setpoint.vz = _vel_sp(2);
_acc_sp.copyTo(local_position_setpoint.acceleration);
nans<3, 1>().copyTo(local_position_setpoint.jerk);
_thr_sp.copyTo(local_position_setpoint.thrust);
}