@ -55,20 +55,6 @@ void App_Init(void){
static void App_Task ( void * pv ) {
McuLog_info ( " Application Task starting " ) ;
bool initSuccess = MultiSplitFlap_MoveAllToZeroPosition ( ) ;
# ifndef APP_DEBUG
if ( initSuccess = = false )
{
// end here
for ( ; ; ) { }
}
# else
// fake set to ready
( ( SF_t * ) splitflap0 ) - > state = SF_STATE_READY ;
( ( SF_t * ) splitflap1 ) - > state = SF_STATE_READY ;
# endif
QueueHandle_t cmdQueueHandle = SHELL_GetShellCmdQueueHandle ( ) ; ;
Shell_cmd_s cmd ;
char * sentence ;
@ -94,7 +80,6 @@ static void App_Task(void* pv){
McuLog_error ( " Invalid String to Display " ) ;
}
break ;
case Shell_Powerof_rpi :
default :
McuLog_error ( " Not implemented command recieved in App_Task. Command Id was <%i> " , ( int ) cmd . shellCmd ) ;
break ;
@ -125,7 +110,7 @@ static void App_Task(void* pv){
/* SINGLE SPLIT FLAP TESTING */
// go through the following letters
char * letters [ ] = { " J " , " O " , " N " , " A " , " S " , " ! " } ;
Flap_t letters [ ] = { ' J ' , ' O ' , ' N ' , ' A ' , ' S ' , ' ! ' } ;
//char* letters[] = { " ", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K",
// "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",
// "0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
@ -200,7 +185,7 @@ void configureSplitflaps(void){
/* create config instance for splitflap 0 */
SF_Config_t sf0Config ;
sf0Config . setupIdentifier = 0 ;
sf0Config . hardwareIdentifier = 4 ;
sf0Config . hardwareIdentifier = 10 ; // default value
sf0Config . magSensorConfig = magSensor0Config ;
sf0Config . motorConfig = motor0Config ;
@ -237,7 +222,7 @@ void configureSplitflaps(void){
/* create config instance for splitflap 0 */
SF_Config_t sf1Config ;
sf1Config . setupIdentifier = 1 ;
sf1Config . hardwareIdentifier = 22 ;
sf1Config . hardwareIdentifier = 20 ; // default value
sf1Config . magSensorConfig = magSensor1Config ;
sf1Config . motorConfig = motor1Config ;