RPLIDAR A1M8 LCD

Dependencies:   TS_DISCO_F746NG mbed BufferedSerial LCD_DISCO_F746NG mbed-rtos Trigo BSP_DISCO_F746NG

Committer:
KheirddineZ
Date:
Tue Jun 22 13:22:01 2021 +0000
Revision:
8:7788cc96e8ad
Parent:
7:d51b8b7f9960
RPLIDAR A1M8

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Carminio 0:88706d6abbf7 1 #include "mbed.h"
Carminio 0:88706d6abbf7 2 #include "Motor.h"
Carminio 0:88706d6abbf7 3
Carminio 0:88706d6abbf7 4
Carminio 0:88706d6abbf7 5 void Motor::StartMotor_Scan()
Carminio 0:88706d6abbf7 6 {
KheirddineZ 8:7788cc96e8ad 7 uint8_t period=40; //25
KheirddineZ 8:7788cc96e8ad 8 uint8_t pulsewidth=32; //80
Carminio 0:88706d6abbf7 9
Carminio 0:88706d6abbf7 10 period_us(period);
Carminio 0:88706d6abbf7 11 pulsewidth_us(pulsewidth);
Carminio 0:88706d6abbf7 12 }
Carminio 0:88706d6abbf7 13
Carminio 0:88706d6abbf7 14
Carminio 0:88706d6abbf7 15 void Motor::StopMotor_Scan()
Carminio 0:88706d6abbf7 16 {
KheirddineZ 8:7788cc96e8ad 17 uint8_t period=0; // 0Hz
KheirddineZ 8:7788cc96e8ad 18 uint8_t pulsewidth=0; // 0%
Carminio 0:88706d6abbf7 19
Carminio 0:88706d6abbf7 20 period_us(period);
Carminio 0:88706d6abbf7 21 pulsewidth_us(pulsewidth);
Carminio 0:88706d6abbf7 22
Carminio 0:88706d6abbf7 23 }