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.
Diff: main.cpp
- Revision:
- 2:d2e002754654
- Parent:
- 0:9eb40ee5ff41
- Child:
- 3:97827746c632
--- a/main.cpp Fri May 31 09:41:29 2019 +0000 +++ b/main.cpp Fri May 31 11:17:32 2019 +0000 @@ -53,20 +53,20 @@ // voiture angle = angle dans le repère du circuit // mise à jour la vitesse de la voiture - voiture_vitesse = voiture_vitesse + sqrt(ax*ax+ay*ay)*voiture_deltat*g; //(m) + //voiture_vitesse = voiture_vitesse + sqrt(ax*ax+ay*ay)*voiture_deltat*g; //(m) - if (voiture_vitesse>1){ + if (ax>1){ myled2=1; } else{ myled2=0; } - if (voiture_vitesse>5){ + if (voiture_vitesse==1.5){ myled3=1; } else{ - myled3=0; + ay=0; } // data_distances = Radar;