Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: LSM9DS1 RangeFinder FastPWM
Dependents: PM2_Example_PES_board PM2_Example_PES_board PM2_Example_PES_board PM2_Example_PES_board ... more
Diff: SpeedController.h
- Revision:
- 5:6cd242a61e4c
- Parent:
- 4:9c003c402033
- Child:
- 6:41dd03654c44
diff -r 9c003c402033 -r 6cd242a61e4c SpeedController.h
--- 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;
