Skip to content
Snippets Groups Projects
Commit 5df4295e authored by rmackay9's avatar rmackay9
Browse files

ArduCopter: write failsafe error to logs before switching flight modes

parent 0a101162
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,9 @@ static void failsafe_on_event() ...@@ -11,6 +11,9 @@ static void failsafe_on_event()
return; return;
} }
// log the error to the dataflash
Log_Write_Error(ERROR_SUBSYSTEM_FAILSAFE, ERROR_CODE_FAILSAFE_THROTTLE);
// This is how to handle a failsafe. // This is how to handle a failsafe.
switch(control_mode) { switch(control_mode) {
case STABILIZE: case STABILIZE:
...@@ -47,9 +50,6 @@ static void failsafe_on_event() ...@@ -47,9 +50,6 @@ static void failsafe_on_event()
break; break;
} }
// log the error to the dataflash
Log_Write_Error(ERROR_SUBSYSTEM_FAILSAFE, ERROR_CODE_FAILSAFE_THROTTLE);
} }
// failsafe_off_event - respond to radio contact being regained // failsafe_off_event - respond to radio contact being regained
......
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