LUIS

Dependencies:   mbed

Committer:
pirottealex
Date:
Fri Oct 05 14:54:54 2018 +0000
Revision:
0:96bdb0d08de1
a

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pirottealex 0:96bdb0d08de1 1 #include "mbed.h"
pirottealex 0:96bdb0d08de1 2 #include "fct.h"
pirottealex 0:96bdb0d08de1 3
pirottealex 0:96bdb0d08de1 4
pirottealex 0:96bdb0d08de1 5 int main() {
pirottealex 0:96bdb0d08de1 6
pirottealex 0:96bdb0d08de1 7 LIDAR.period(PERIOD);
pirottealex 0:96bdb0d08de1 8 LIDAR.pulsewidth(PERIOD*0.2);
pirottealex 0:96bdb0d08de1 9 pc.baud(230400);
pirottealex 0:96bdb0d08de1 10 Lidar.baud(115200);
pirottealex 0:96bdb0d08de1 11 Lidar.attach(&reception);
pirottealex 0:96bdb0d08de1 12 //pc.printf("NAW SCAN\n\r");
pirottealex 0:96bdb0d08de1 13 wait(2);
pirottealex 0:96bdb0d08de1 14 get_info();
pirottealex 0:96bdb0d08de1 15 //get_health();
pirottealex 0:96bdb0d08de1 16 /*Lidar.putc(SYNC);
pirottealex 0:96bdb0d08de1 17 Lidar.putc(SCAN);
pirottealex 0:96bdb0d08de1 18
pirottealex 0:96bdb0d08de1 19 wait(5);
pirottealex 0:96bdb0d08de1 20 Lidar.putc(SYNC);
pirottealex 0:96bdb0d08de1 21 Lidar.putc(STOP); */
pirottealex 0:96bdb0d08de1 22 while(1)
pirottealex 0:96bdb0d08de1 23 {
pirottealex 0:96bdb0d08de1 24
pirottealex 0:96bdb0d08de1 25
pirottealex 0:96bdb0d08de1 26
pirottealex 0:96bdb0d08de1 27 }
pirottealex 0:96bdb0d08de1 28 }
pirottealex 0:96bdb0d08de1 29
pirottealex 0:96bdb0d08de1 30
pirottealex 0:96bdb0d08de1 31
pirottealex 0:96bdb0d08de1 32