PM2_Lib

Dependencies:   LSM9DS1 RangeFinder FastPWM

Revision:
19:518ed284d98b
Parent:
10:fe74e8909d3f
--- a/SpeedController.cpp	Tue Mar 22 08:33:25 2022 +0000
+++ b/SpeedController.cpp	Tue Mar 22 08:35:07 2022 +0000
@@ -2,8 +2,8 @@
 
 const float SpeedController::TS = 0.001f;                       // period of 1 ms
 const float SpeedController::LOWPASS_FILTER_FREQUENCY = 100.0f; // given in [rad/s]
-const float SpeedController::MIN_DUTY_CYCLE = 0.02f;            // minimum duty-cycle
-const float SpeedController::MAX_DUTY_CYCLE = 0.98f;            // maximum duty-cycle
+const float SpeedController::MIN_DUTY_CYCLE = 0.01f;            // minimum duty-cycle
+const float SpeedController::MAX_DUTY_CYCLE = 0.99f;            // maximum duty-cycle
 
 SpeedController::SpeedController(float counts_per_turn, float kn, float max_voltage, FastPWM& pwm, EncoderCounter& encoderCounter) : pwm(pwm), encoderCounter(encoderCounter), thread(osPriorityHigh, 4096)
 {