mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
fix code style
This commit is contained in:
parent
52f5f1be07
commit
6a60ff9dc3
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user