mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 07:03:34 +08:00
FlightModeManager: rename updateVelocityController{IO} to {Feedback}
This commit is contained in:
committed by
Lorenz Meier
parent
02abb760a3
commit
54fe0ae98c
@@ -467,7 +467,7 @@ void FlightModeManager::generateTrajectorySetpoint(const float dt,
|
||||
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 acc_sp{vehicle_local_position_setpoint.acceleration};
|
||||
_current_task.task->updateVelocityControllerIO(vel_sp, acc_sp);
|
||||
_current_task.task->updateVelocityControllerFeedback(vel_sp, acc_sp);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -176,8 +176,8 @@ public:
|
||||
*/
|
||||
virtual void setYawHandler(WeatherVane *ext_yaw_handler) {}
|
||||
|
||||
void updateVelocityControllerIO(const matrix::Vector3f &vel_sp,
|
||||
const matrix::Vector3f &acc_sp)
|
||||
void updateVelocityControllerFeedback(const matrix::Vector3f &vel_sp,
|
||||
const matrix::Vector3f &acc_sp)
|
||||
{
|
||||
_velocity_setpoint_feedback = vel_sp;
|
||||
_acceleration_setpoint_feedback = acc_sp;
|
||||
|
||||
Reference in New Issue
Block a user