PM2_Lib
Dependencies: LSM9DS1 RangeFinder FastPWM
Diff: SpeedController.h
- Revision:
- 5:6cd242a61e4c
- Parent:
- 4:9c003c402033
- Child:
- 6:41dd03654c44
--- a/SpeedController.h Tue Apr 06 11:21:54 2021 +0000 +++ b/SpeedController.h Tue Apr 06 12:19:29 2021 +0000 @@ -5,12 +5,13 @@ #include "EncoderCounter.h" #include "LowpassFilter.h" #include "ThreadFlag.h" +#include "FastPWM.h" class SpeedController { public: - SpeedController(float COUNTS_PER_TURN, float KN, float KP, float MAX_VOLTAGE, PwmOut& pwm, EncoderCounter& encoderCounter); + SpeedController(float COUNTS_PER_TURN, float KN, float KP, float MAX_VOLTAGE, FastPWM& pwm, EncoderCounter& encoderCounter); virtual ~SpeedController(); @@ -35,7 +36,7 @@ float KP; float MAX_VOLTAGE; - PwmOut& pwm; + FastPWM& pwm; EncoderCounter& encoderCounter; short previousValueCounter; LowpassFilter speedFilter;