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 Watchdog stm32-sensor-base2
Diff: AS5045/AS5045.cpp
- Revision:
- 1:3c6771928b35
- Parent:
- 0:d383e2dee0f7
- Child:
- 4:f6e22dd39313
diff -r d383e2dee0f7 -r 3c6771928b35 AS5045/AS5045.cpp --- a/AS5045/AS5045.cpp Mon Jul 06 17:18:59 2020 +0530 +++ b/AS5045/AS5045.cpp Tue Jul 07 15:09:23 2020 +0530 @@ -53,7 +53,7 @@ float AS5045::getRotation() { // Get data from the encoder - float value = (float)GetInt(); + float value = (float)getPosition(); // Return degrees of rotation of the encoder return value * RESOLUTION;