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:
- 34:51647c6c500d
- Parent:
- 22:60276ba87ac6
- Child:
- 35:69b24894c11d
--- a/PositionSensor/PositionSensor.h Wed Aug 30 18:10:27 2017 +0000
+++ b/PositionSensor/PositionSensor.h Wed Nov 08 15:18:18 2017 +0000
@@ -53,7 +53,7 @@
virtual int GetCPR(void);
virtual void WriteLUT(int new_lut[128]);
private:
- float position, ElecPosition, ElecOffset, MechPosition, MechOffset, modPosition, oldModPosition, oldVel, velVec[16], MechVelocity, ElecVelocity;
+ float position, ElecPosition, ElecOffset, MechPosition, MechOffset, modPosition, oldModPosition, oldVel, velVec[16], MechVelocity, ElecVelocity, ElecVelocityFilt;
int raw, _CPR, rotations, old_counts, _ppairs;
SPI *spi;
DigitalOut *cs;