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.cpp
- Revision:
- 28:8c7e29f719c5
- Parent:
- 26:2b865c00d7e9
- Child:
- 34:51647c6c500d
diff -r 501fee691e0e -r 8c7e29f719c5 PositionSensor/PositionSensor.cpp --- a/PositionSensor/PositionSensor.cpp Wed May 17 14:53:22 2017 +0000 +++ b/PositionSensor/PositionSensor.cpp Sun Jun 04 19:00:22 2017 +0000 @@ -92,6 +92,8 @@ void PositionSensorAM5147::ZeroPosition(){ rotations = 0; + MechOffset = 0; + Sample(); MechOffset = GetMechPosition(); }