Skip to content
Snippets Groups Projects
Commit c211fd79 authored by Angel's avatar Angel
Browse files

more changes controller

parent d7d3b2d2
No related branches found
No related tags found
No related merge requests found
......@@ -204,6 +204,11 @@ int getInstantController()
void setControllerUsed(int controller) //for permanent configs
{
controller_used = controller;
if(flying_state == STATE_MOTORS_OFF || flying_state == STATE_FLYING)
{
setInstantController(controller); //if motors OFF or STATE FLYING, transparent, change is instant
}
}
int getControllerUsed()
......
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