Browse Source

fix status ==

master
yaozb 5 years ago
parent
commit
59e0797af0
  1. 2
      ArduCopter/mode_brake.cpp
  2. 2
      ArduCopter/mode_rtl.cpp

2
ArduCopter/mode_brake.cpp

@ -91,7 +91,7 @@ void ModeBrake::run()
} }
else if(countdown<=0){ else if(countdown<=0){
gcs().send_text(MAV_SEVERITY_INFO," 执行继续任务"); gcs().send_text(MAV_SEVERITY_INFO," 执行继续任务");
copter.updownStatus == UpDown_ContinueClimb; copter.updownStatus = UpDown_ContinueClimb;
set_mode(Mode::Number::AUTO, ModeReason::REQUEST_CMD); set_mode(Mode::Number::AUTO, ModeReason::REQUEST_CMD);
} }
} }

2
ArduCopter/mode_rtl.cpp

@ -96,7 +96,7 @@ void ModeRTL::run(bool disarm_on_land)
} }
else if(countdown<=0){ else if(countdown<=0){
gcs().send_text(MAV_SEVERITY_INFO,"开始着陆"); gcs().send_text(MAV_SEVERITY_INFO,"开始着陆");
copter.updownStatus == UpDown_ContinueDescent; copter.updownStatus = UpDown_ContinueDescent;
_state = RTL_Land; _state = RTL_Land;
} }
} }

Loading…
Cancel
Save