carte_strategie_2019
Dependencies: mbed SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac
Diff: Strategie/Strategie.cpp
- Revision:
- 49:d83a4851a257
- Parent:
- 48:43e72239fb02
- Child:
- 50:a5361ffeefc8
--- a/Strategie/Strategie.cpp Thu May 16 11:58:50 2019 +0000 +++ b/Strategie/Strategie.cpp Thu May 16 12:08:07 2019 +0000 @@ -2199,20 +2199,20 @@ break; case RECEPTION_RECALAGE: - telemetreDistance_arriere_droite = char_to_short_transformation(msgRxBuffer[FIFO_lecture].data[0], msgRxBuffer[FIFO_lecture].data[1]); //on récupère la distance traité par l'autre micro - telemetreDistance_avant_droite = char_to_short_transformation(msgRxBuffer[FIFO_lecture].data[2], msgRxBuffer[FIFO_lecture].data[3]); + telemetreDistance_avant_droite = char_to_short_transformation(msgRxBuffer[FIFO_lecture].data[0], msgRxBuffer[FIFO_lecture].data[1]); //on récupère la distance traité par l'autre micro + telemetreDistance_avant_gauche = char_to_short_transformation(msgRxBuffer[FIFO_lecture].data[2], msgRxBuffer[FIFO_lecture].data[3]); telemetreDistance_arriere_gauche = char_to_short_transformation(msgRxBuffer[FIFO_lecture].data[4], msgRxBuffer[FIFO_lecture].data[5]); - telemetreDistance_avant_gauche = char_to_short_transformation(msgRxBuffer[FIFO_lecture].data[6], msgRxBuffer[FIFO_lecture].data[7]); + telemetreDistance_arriere_droite = char_to_short_transformation(msgRxBuffer[FIFO_lecture].data[6], msgRxBuffer[FIFO_lecture].data[7]); if(ModeDemo==1) { - sprintf(message,"%04d mm",telemetreDistance_arriere_droite); + sprintf(message,"%04d mm",telemetreDistance_avant_droite); lcd.SetBackColor(LCD_COLOR_WHITE); lcd.DisplayStringAt(0, LINE(10),(unsigned char *)"LASER AVD : ",LEFT_MODE); lcd.DisplayStringAt(200, LINE(10),(unsigned char *)message, LEFT_MODE); - sprintf(message1,"%04d mm",telemetreDistance_avant_droite); + sprintf(message1,"%04d mm",telemetreDistance_avant_gauche); lcd.SetBackColor(LCD_COLOR_WHITE); lcd.DisplayStringAt(0, LINE(12),(unsigned char *)"LASER AVG : ",LEFT_MODE); lcd.DisplayStringAt(200, LINE(12),(unsigned char *)message1, LEFT_MODE); @@ -2222,7 +2222,7 @@ lcd.DisplayStringAt(0, LINE(14),(unsigned char *)"LASER ARG : ",LEFT_MODE); lcd.DisplayStringAt(200, LINE(14),(unsigned char *)message2, LEFT_MODE); - sprintf(message3,"%04d mm",telemetreDistance_avant_gauche); + sprintf(message3,"%04d mm",telemetreDistance_arriere_droite); lcd.SetBackColor(LCD_COLOR_WHITE); lcd.DisplayStringAt(0, LINE(16),(unsigned char *)"LASER ARD : ",LEFT_MODE); lcd.DisplayStringAt(200, LINE(16),(unsigned char *)message3, LEFT_MODE);