cli / eeprom implementation tested and verified
This commit is contained in:
parent
679040f9e7
commit
d5dcbf9c25
@ -241,15 +241,12 @@ typedef enum
|
||||
//ACCEL
|
||||
COMMAND_ID_PID_ACCEL_P_ROLL,
|
||||
COMMAND_ID_PID_ACCEL_P_PITCH,
|
||||
COMMAND_ID_PID_ACCEL_P_YAW,
|
||||
|
||||
COMMAND_ID_PID_ACCEL_I_ROLL,
|
||||
COMMAND_ID_PID_ACCEL_I_PITCH,
|
||||
COMMAND_ID_PID_ACCEL_I_YAW,
|
||||
|
||||
COMMAND_ID_PID_ACCEL_D_ROLL,
|
||||
COMMAND_ID_PID_ACCEL_D_PITCH,
|
||||
COMMAND_ID_PID_ACCEL_D_YAW,
|
||||
|
||||
/* Counter for the amount of commands */
|
||||
COMMAND_ID_COUNT,
|
||||
|
@ -45,19 +45,20 @@ void init_system()
|
||||
//Configure the clock
|
||||
system_clock_config();
|
||||
|
||||
pidInit();
|
||||
|
||||
/* read saved variables from eeprom, in most cases eeprom should be read after a lot of the initializes */
|
||||
readEEPROM();
|
||||
|
||||
//initialize the CLI NOTE: Cant use the same usart as anything else or there will be some big trouble
|
||||
cliInit(USART3);
|
||||
cliInit(USART1);
|
||||
|
||||
//init sbus, using USART1
|
||||
sbus_init();
|
||||
// sbus_init();
|
||||
|
||||
//init motors to run with oneshot 125
|
||||
pwmEnableAllMotors(Oneshot125);
|
||||
|
||||
pidInit();
|
||||
|
||||
#ifdef USE_LEDS
|
||||
//Initialize the on board leds
|
||||
|
Reference in New Issue
Block a user