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

@@ -8,15 +8,17 @@ void status_set_led_pattern(unsigned int module);
void init_status(void);
#define STATUS_MODULE_GYRO_ZERO 0
#define STATUS_MODULE_GYRO_RATE 1
#define STATUS_MODULE_ATTITUDE 2
#define STATUS_MODULE_DCM_ERROR 3
#define STATUS_MODULE_STICK 4
#define STATUS_MODULE_CONFIG 0
#define STATUS_MODULE_GYRO_ZERO 1
#define STATUS_MODULE_GYRO_RATE 2
#define STATUS_MODULE_ATTITUDE 3
#define STATUS_MODULE_DCM_ERROR 4
#define STATUS_MODULE_STICK 5
#define STATUS_MODULES 5
#define STATUS_MODULES 6
#define STATUS_COUNT { \
STATUS_COUNT_CONFIG, \
STATUS_COUNT_GYRO_ZERO, \
STATUS_COUNT_GYRO_RATE, \
STATUS_COUNT_ATTITUDE, \
@@ -28,6 +30,7 @@ void init_status(void);
* Each condition must be valid for so many samples, typically once
* per 100Hz loop
*/
#define STATUS_COUNT_CONFIG 1
#define STATUS_COUNT_STICK 100
#define STATUS_COUNT_GYRO_ZERO 1
#define STATUS_COUNT_GYRO_RATE 100