TER Atienza Pongnot 2019 / TLE5206_lib

Fork of TLE5206_lib by nicolas Atienza

Revision:
1:1117196d767b
Parent:
0:03a724b7421c
Child:
2:610e4177e391
--- a/TLE5206_lib.cpp	Tue Jan 29 15:32:12 2019 +0000
+++ b/TLE5206_lib.cpp	Wed Mar 13 18:33:48 2019 +0000
@@ -10,7 +10,7 @@
 
 void TLE5206::write(float duty_cycle){
     if (duty_cycle < -1){
-        this->pwmIN1 = 1.0;
+        this->pwmIN1 = 0.99;
         this->pwmIN2 = 0.0;
     }else if (duty_cycle < 0){
         this->pwmIN1 = -duty_cycle;
@@ -20,6 +20,6 @@
         this->pwmIN2 = duty_cycle;
     }else {
         this->pwmIN1 = 0.0;
-        this->pwmIN2 = 1.0;    
+        this->pwmIN2 = 0.99;    
     }    
 }
\ No newline at end of file