Store the configuration on the SD card

This commit is contained in:
2015-08-13 14:10:09 +00:00
parent 53a8072424
commit d0f9f46f9c
16 changed files with 271 additions and 26 deletions

View File

@@ -15,6 +15,8 @@ led_pattern led_pattern_attitude[] = {100, 200, 100, 200, 100, 200, 100,
1000, 0};
led_pattern led_pattern_dcm_error[] = {100, 200, 100, 200, 100, 200,
100, 200, 100, 1000, 0};
led_pattern led_pattern_config[] = {100, 200, 100, 200, 100, 200,
1000, 1000, 0};
bool status_armed(void)
{
@@ -74,6 +76,9 @@ void status_set_led_pattern(unsigned int module)
case STATUS_MODULE_DCM_ERROR:
led_set_pattern(led_pattern_dcm_error);
break;
case STATUS_MODULE_CONFIG:
led_set_pattern(led_pattern_config);
break;
default:
led_set_pattern(led_pattern_unknown);
break;