carte_strategie_2019
Dependencies: mbed SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac
Diff: Strategie/Strategie.cpp
- Revision:
- 61:4046a91e1b0e
- Parent:
- 58:faef8d1b8ed8
- Child:
- 62:c4863b4b2543
--- a/Strategie/Strategie.cpp Fri May 24 14:58:22 2019 +0000 +++ b/Strategie/Strategie.cpp Fri May 24 21:18:26 2019 +0000 @@ -454,17 +454,21 @@ else if (TEST_TIR_BALLE.Touched()) { while(TEST_TIR_BALLE.Touched()); + while(1){ TEST_TIR_BALLE.Draw(0xFFF0F0F0, 0); - etat =TEST_TIR ; - lcd.Clear(LCD_COLOR_WHITE); - CANMessage trame_Tx = CANMessage(); + //etat =TEST_TIR ; + //lcd.Clear(LCD_COLOR_WHITE); + /* CANMessage trame_Tx = CANMessage(); trame_Tx.len = 1; trame_Tx.format = CANStandard; trame_Tx.type = CANData; trame_Tx.id=CHOICE_COLOR; trame_Tx.data[0]=0x2; - can2.write(trame_Tx); - ModeDemo=1; + can2.write(trame_Tx);*/ + rn42_Tx.printf("A"); + pc.printf("electron\r"); + } + //ModeDemo=1; } else if(TEST_IMMEUBLE.Touched()) { while(TEST_IMMEUBLE.Touched()); TEST_IMMEUBLE.Draw(0xFFF0F0F0, 0); @@ -1225,7 +1229,8 @@ break; case ETAT_GAME_START: - + + gameEtat = ETAT_GAME_LOAD_NEXT_INSTRUCTION; if (ModeDemo == 0) { @@ -1261,6 +1266,7 @@ */ //debug_Instruction(instruction); //affichage_debug(gameEtat); + rn42_Tx.printf("A"); actionPrecedente = instruction.order; switch(instruction.order) { case MV_COURBURE://C'est un rayon de courbure