mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
fix code style
This commit is contained in:
committed by
Lorenz Meier
parent
52f5f1be07
commit
6a60ff9dc3
@@ -508,9 +508,11 @@ Navigator::task_main()
|
|||||||
rep->current.loiter_radius = get_loiter_radius();
|
rep->current.loiter_radius = get_loiter_radius();
|
||||||
rep->current.loiter_direction = 1;
|
rep->current.loiter_direction = 1;
|
||||||
rep->current.type = position_setpoint_s::SETPOINT_TYPE_TAKEOFF;
|
rep->current.type = position_setpoint_s::SETPOINT_TYPE_TAKEOFF;
|
||||||
|
|
||||||
if (home_position_valid()) {
|
if (home_position_valid()) {
|
||||||
rep->current.yaw = cmd.param4;
|
rep->current.yaw = cmd.param4;
|
||||||
rep->previous.valid = true;
|
rep->previous.valid = true;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
rep->current.yaw = get_local_position()->yaw;
|
rep->current.yaw = get_local_position()->yaw;
|
||||||
rep->previous.valid = false;
|
rep->previous.valid = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user