test

Dependencies:   mbed Watchdog

Dependents:   STM32-MC_node

Revision:
1:3c6771928b35
Parent:
0:d383e2dee0f7
Child:
4:f6e22dd39313
--- 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;