|
|
|
@ -822,12 +822,13 @@ void Copter::update_updownStatus2(uint8_t status)
@@ -822,12 +822,13 @@ void Copter::update_updownStatus2(uint8_t status)
|
|
|
|
|
{ |
|
|
|
|
copter.updownStatus = (UpDownState)status; |
|
|
|
|
if (status == 3) |
|
|
|
|
{ |
|
|
|
|
{
|
|
|
|
|
set_mode(Mode::Number::AUTO, ModeReason::REQUEST_CMD); |
|
|
|
|
mavlink_zr_flying_status_t zr_flying_status_t; |
|
|
|
|
zr_flying_status_t.updown_status = copter.updownStatus; |
|
|
|
|
zr_flying_status_t.countdown = 255; |
|
|
|
|
gcs().update_zr_fly_status(&zr_flying_status_t); |
|
|
|
|
gcs().send_text(MAV_SEVERITY_WARNING,"NOTICE: 执行继续任务"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|