mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 13:15:32 +08:00
FlightModeManager: correct acceleration setpoint feedback naming
The variable was never renamed correctly in this in between layer when we switched from normalized thrust to acceleration setpoints.
This commit is contained in:
committed by
Lorenz Meier
parent
4d7b875ee2
commit
63db61a700
@@ -489,8 +489,8 @@ void FlightModeManager::generateTrajectorySetpoint(const float dt,
|
|||||||
|
|
||||||
if (_vehicle_local_position_setpoint_sub.copy(&vehicle_local_position_setpoint)) {
|
if (_vehicle_local_position_setpoint_sub.copy(&vehicle_local_position_setpoint)) {
|
||||||
const Vector3f vel_sp{vehicle_local_position_setpoint.vx, vehicle_local_position_setpoint.vy, vehicle_local_position_setpoint.vz};
|
const Vector3f vel_sp{vehicle_local_position_setpoint.vx, vehicle_local_position_setpoint.vy, vehicle_local_position_setpoint.vz};
|
||||||
const Vector3f thrust_sp{vehicle_local_position_setpoint.acceleration};
|
const Vector3f acc_sp{vehicle_local_position_setpoint.acceleration};
|
||||||
_current_task.task->updateVelocityControllerIO(vel_sp, thrust_sp);
|
_current_task.task->updateVelocityControllerIO(vel_sp, acc_sp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user