Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed StrategieLib BrasLib AnalyseDistanceLib BrasPousserLib EcranLib PompeLib DemarreurLib Asservissment_robot2_v16_05 AnalyseArcLib
Diff: main.cpp
- Revision:
- 7:7f59ce30a6fe
- Parent:
- 6:4f7f2d8a7cf8
- Child:
- 8:c1439c88858d
diff -r 4f7f2d8a7cf8 -r 7f59ce30a6fe main.cpp
--- a/main.cpp Sun May 26 14:59:56 2019 +0000
+++ b/main.cpp Tue May 28 23:56:01 2019 +0000
@@ -34,7 +34,7 @@
//I2CSlave i2c(PIN_SDA, PIN_SCL);
extern Serial serial;
-extern bool typeEvitement;
+extern int typeEvitement;
Serial capteursUART(A0,A1,2000000);
//Ticker lectureI2C;
extern event_callback_t afficherEcranCallback;
@@ -76,11 +76,11 @@
serial.read((uint8_t*)buffer, TAILLE, afficherEcranCallback, SERIAL_EVENT_RX_COMPLETE);
capteursUART.read((uint8_t*)bufferCapteurs, TAILLEBUFFERCAPTEURS, afficherCapteursCallback, SERIAL_EVENT_RX_COMPLETE);
- /*setEmplacementTest();
+ setEmplacementTest();
init_odometrie();
- typeEvitement = ARC;
+ typeEvitement = RECTANGLE;
wait(10);
- robot.va_au_point(100000,30000,0.0);*/
+ robot.va_au_point(100000,30000,0.0);
while(1)
{
if(detectionUltrasons)