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: FastPWM3 mbed-dev-STM-lean
Diff: PositionSensor/PositionSensor.h
- Revision:
- 58:32e8927fe39f
- Parent:
- 57:0795d2add37e
--- a/PositionSensor/PositionSensor.h Thu Nov 07 18:14:51 2019 +0000 +++ b/PositionSensor/PositionSensor.h Tue Feb 04 14:19:58 2020 +0000 @@ -85,7 +85,7 @@ virtual void WriteLUT(int new_lut[128]); private: float position, ElecPosition, ElecOffset, MechPosition, MechOffset, modPosition, oldModPosition, oldVel, velVec[40], MechVelocity, ElecVelocity, ElecVelocityFilt; - int raw, _CPR, rotations, old_counts, _ppairs, first_sample, raw_bytes[8]; + int raw, lut_shift, _CPR, rotations, old_counts, _ppairs, first_sample, raw_bytes[8]; SPI *spi; DigitalOut *cs; int readAngleCmd;