1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

Based on the selected behavior either apply or save the stabilization settings

This commit is contained in:
James Cotton 2012-08-01 02:09:10 -05:00
parent 28539a80d1
commit 24d9e50c08

View File

@ -288,7 +288,19 @@ static void update_stabilization_settings()
break;
}
}
StabilizationSettingsSet(&stabSettings);
switch(relaySettings.Behavior) {
case RELAYTUNINGSETTINGS_BEHAVIOR_MEASURE:
// Just measure, don't update the stab settings
break;
case RELAYTUNINGSETTINGS_BEHAVIOR_COMPUTE:
StabilizationSettingsSet(&stabSettings);
break;
case RELAYTUNINGSETTINGS_BEHAVIOR_SAVE:
StabilizationSettingsSet(&stabSettings);
UAVObjSave(StabilizationSettingsHandle(), 0);
break;
}
}
/**