PM2_Lib

Dependencies:   LSM9DS1 RangeFinder FastPWM

Revision:
19:518ed284d98b
Parent:
18:21c0a669d6ef
Child:
20:ea222b81350e
diff -r 21c0a669d6ef -r 518ed284d98b Servo.cpp
--- a/Servo.cpp	Tue Mar 22 08:33:25 2022 +0000
+++ b/Servo.cpp	Tue Mar 22 08:35:07 2022 +0000
@@ -14,7 +14,6 @@
     if (_Input < MIN_INPUT) _Input = MIN_INPUT;
     if (_Input > MAX_INPUT) _Input = MAX_INPUT;
     Position = static_cast<int>(_Input * static_cast<float>(Period));
-    printf("Position: %d\r\n", Position);
 }
 
 void Servo::StartPulse()
@@ -39,7 +38,6 @@
     if (_StartInput > MAX_INPUT) _StartInput = MAX_INPUT;
     Period = _Period;
     Position = static_cast<int>(_StartInput * static_cast<float>(Period));
-    printf("Position: %d\r\n", Position);
     Pulse.attach(callback(this, &Servo::StartPulse), std::chrono::microseconds{static_cast<long int>(Period)});
 }