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
Diff: Lidar.cpp
- Revision:
- 18:daba0b3777c0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Lidar.cpp Fri Jun 07 01:11:01 2019 +0000 @@ -0,0 +1,17 @@ +#include "SaphTeamRacing.h" + + +void afficher_lidar(float *tableau_distances_var, Serial pc) +{ + /* + Affiche les données du lidar dans la liaison série. + */ + int angle; + float tableau_distances[360]; + for(angle=0; angle<360; angle++) tableau_distances[angle]=tableau_distances_var[angle]; + + for(angle=0; angle<360; angle++) { + float distance = tableau_distances[angle]; + pc.printf("%i,%f\n\r",angle,distance); + } +}