mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-04 08:40:34 +08:00
FlightTasks: refactoring for CamelCase naming convention, small comment and declaration order renicements
This commit is contained in:
@@ -80,8 +80,8 @@ bool FlightTaskOrbit::update()
|
||||
|
||||
float yaw = atan2f(center_to_position(1), center_to_position(0)) + M_PI_F;
|
||||
|
||||
_set_position_setpoint(Vector3f(NAN, NAN, _z));
|
||||
_set_velocity_setpoint(Vector3f(velocity_xy(0), velocity_xy(1), 0.f));
|
||||
_set_yaw_setpoint(yaw);
|
||||
_setPositionSetpoint(Vector3f(NAN, NAN, _z));
|
||||
_setVelocitySetpoint(Vector3f(velocity_xy(0), velocity_xy(1), 0.f));
|
||||
_setYawSetpoint(yaw);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user