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 SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac
Diff: Robots/Strategie_small.cpp
- Revision:
- 78:c0533a36da8f
- Parent:
- 75:1db1b929f13d
- Child:
- 80:545a9bf561e1
--- a/Robots/Strategie_small.cpp Tue May 28 10:20:59 2019 +0000 +++ b/Robots/Strategie_small.cpp Tue May 28 20:37:59 2019 +0000 @@ -4,6 +4,9 @@ unsigned short distance_recalage; unsigned short distance_revenir; + +unsigned short x; +unsigned short y; unsigned char isStopEnable = 1;//Permet de savoir si il faut autoriser le stop via les balises //unsigned short telemetreDistance; @@ -59,11 +62,14 @@ break; case 108: //goldenium avant //SendRawId(GOLDENIUM_AVANT); - unsigned short distance_goldenium=arg1; - Send2Short(GOLDENIUM_AVANT, distance_goldenium,0); + x=arg1; + y=arg2; + Send2Short(GOLDENIUM_AVANT, x,y); break; case 109: //goldenium arriere - SendRawId(GOLDENIUM_ARRIERE); + x=arg1; + y=arg2; + Send2Short(GOLDENIUM_ARRIERE, x,y); break; case 110: //sol avant SendRawId(SOL_AVANT);