Alexandre Pirotte
/
NUCLEO_LIDAR
LUIS
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 #include "fct.h" 00003 00004 00005 int main() { 00006 00007 LIDAR.period(PERIOD); 00008 LIDAR.pulsewidth(PERIOD*0.2); 00009 pc.baud(230400); 00010 Lidar.baud(115200); 00011 Lidar.attach(&reception); 00012 //pc.printf("NAW SCAN\n\r"); 00013 wait(2); 00014 get_info(); 00015 //get_health(); 00016 /*Lidar.putc(SYNC); 00017 Lidar.putc(SCAN); 00018 00019 wait(5); 00020 Lidar.putc(SYNC); 00021 Lidar.putc(STOP); */ 00022 while(1) 00023 { 00024 00025 00026 00027 } 00028 } 00029 00030 00031 00032
Generated on Mon Jul 18 2022 17:03:16 by 1.7.2