Lidar
Dependencies: TS_DISCO_F746NG mbed BufferedSerial LCD_DISCO_F746NG mbed-rtos Trigo BSP_DISCO_F746NG
Revision 7:d51b8b7f9960, committed 2016-11-28
- Comitter:
- Carminio
- Date:
- Mon Nov 28 15:36:07 2016 +0000
- Parent:
- 6:b6efac82e5f9
- Commit message:
- Come versione precedente ma con Duty Cicle = 80%
Changed in this revision
Motor.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r b6efac82e5f9 -r d51b8b7f9960 Motor.cpp --- a/Motor.cpp Fri Nov 25 10:43:19 2016 +0000 +++ b/Motor.cpp Mon Nov 28 15:36:07 2016 +0000 @@ -4,8 +4,8 @@ void Motor::StartMotor_Scan() { - int period=40; //Frequency 25KHz - int pulsewidth=24; //Duty cycle 60% + uint8_t period=40; //Frequency 25KHz + uint8_t pulsewidth=32; //Duty cycle 80% period_us(period); pulsewidth_us(pulsewidth); @@ -14,8 +14,8 @@ void Motor::StopMotor_Scan() { - int period=40; //Frequency 0Hz - int pulsewidth=0; //Duty cycle 0% + uint8_t period=40; //Frequency 0Hz + uint8_t pulsewidth=0; //Duty cycle 0% period_us(period); pulsewidth_us(pulsewidth);