Alexandre Pirotte
/
NUCLEO_LIDAR_scan
LUIS
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 #include "fct.h" 00003 #define LAVABRE 5 00004 00005 int main() { 00006 00007 init(); 00008 wait(LAVABRE); 00009 Timer t1; 00010 t1.start(); 00011 int count=0; 00012 while(count<5) 00013 { 00014 pc.printf("TOUR %0.3f\n\r",t1.read()); 00015 t1.reset(); 00016 get_position(); 00017 wait(2); 00018 count++; 00019 } 00020 } 00021 00022 00023 00024
Generated on Tue Jul 19 2022 00:09:28 by 1.7.2