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: mbed-dev-f303 FastPWM3
Dependents: GT_MOTOR_24NM_V03 GT_MOTOR_24NM_V03_PT1000CalTemp
Diff: PositionSensor/PositionSensor.h
- Revision:
- 52:8e74c22ed89f
- Parent:
- 47:e1196a851f76
--- a/PositionSensor/PositionSensor.h Wed Jul 17 03:40:12 2019 +0000
+++ b/PositionSensor/PositionSensor.h Sun Jul 21 21:42:49 2019 +0000
@@ -12,7 +12,8 @@
virtual int GetRawPosition(void) = 0;
virtual void SetElecOffset(float offset) = 0;
virtual int GetCPR(void) = 0;
- virtual void WriteLUT(int new_lut[128]) = 0;
+ virtual void WriteLUT(int new_lut[128]) = 0;
+ virtual void SetNPP(int npp) = 0;
};
@@ -56,6 +57,7 @@
virtual void SetMechOffset(float offset);
virtual int GetCPR(void);
virtual void WriteLUT(int new_lut[128]);
+ virtual void SetNPP(int npp);
private:
float position, ElecPosition, ElecOffset, MechPosition, MechOffset, modPosition, oldModPosition, oldVel, velVec[40], MechVelocity, ElecVelocity, ElecVelocityFilt;
int raw, _CPR, rotations, old_counts, _ppairs;