mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-02 22:40:27 +08:00
fix code style
This commit is contained in:
1 parent
52f5f1be07
commit
6a60ff9dc3
1 file changed
+2
@@ -508,9 +508,11 @@ Navigator::task_main()
|
||||
rep->current.loiter_radius = get_loiter_radius();
|
||||
rep->current.loiter_direction = 1;
|
||||
rep->current.type = position_setpoint_s::SETPOINT_TYPE_TAKEOFF;
|
||||
|
||||
if (home_position_valid()) {
|
||||
rep->current.yaw = cmd.param4;
|
||||
rep->previous.valid = true;
|
||||
|
||||
} else {
|
||||
rep->current.yaw = get_local_position()->yaw;
|
||||
rep->previous.valid = false;
|
||||
|
||||
Reference in new issue
Block a user