Skip to content
Snippets Groups Projects
Commit 62b5f326 authored by Robert Lefebvre's avatar Robert Lefebvre Committed by Randy Mackay
Browse files

Copter: Use landinggear.force_deploy method when auto-landing

parent 20fce5c9
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,12 @@ static void landinggear_update(){ ...@@ -9,6 +9,12 @@ static void landinggear_update(){
// last status (deployed or retracted) used to check for changes // last status (deployed or retracted) used to check for changes
static bool last_deploy_status; static bool last_deploy_status;
// if we are doing an automatic landing procedure, force the landing gear to deploy.
// To-Do: should we pause the auto-land procedure to give time for gear to come down?
if (control_mode == LAND || (control_mode==RTL && rtl_state == Land) || (control_mode == AUTO && auto_mode == Auto_Land)){
landinggear.force_deploy(true);
}
landinggear.update(); landinggear.update();
// send event message to datalog if status has changed // send event message to datalog if status has changed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment