![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
faut que Val répare le truc
Diff: main.cpp
- Revision:
- 3:c2c22b4f984b
- Parent:
- 2:223d6363315b
- Child:
- 4:05d5fe68173b
--- a/main.cpp Fri May 15 09:51:02 2020 +0000 +++ b/main.cpp Fri May 15 10:05:01 2020 +0000 @@ -1,4 +1,3 @@ - /* #include <mbed_events.h> */ #include "mbed.h" #include "AX12.h" @@ -6,8 +5,8 @@ DigitalOut alivenessLED(LED1); DigitalOut testLed(LED2); -/* Serial coach(D1, D0, 115200); */ -Serial coach(USBTX, USBRX); +Serial coach(D1, D0); +/* Serial coach(USBTX, USBRX); */ const float rapport_vitesse = 0.019383809*0.026315; const float root3 = 1.7321; @@ -61,9 +60,9 @@ if (last_read == 'S') { send_stat(); } else if (last_read == ';') { - coach.puts("EOL"); - coach.puts(message_0); - coach.puts(message_1); + coach.puts("EOL\n"); + /*coach.puts(message_0); + coach.puts(message_1); */ if (flag_msg == 0) { message_0[indice_a_modifie] = last_read; mise_a_zero_msg_1(); @@ -88,7 +87,7 @@ void reception_com() { if (flag_a_traite == 1) { - coach.puts("traitement"); + coach.puts("traitement\n"); if (flag_msg == 0) { sscanf(message_1,"%f,%f,%f,%f,%f", &front, &lat, &rot, &T_front, &T_lat ); } else {