Руслан Бредун / Mbed 2 deprecated STM32-MC_node

Dependencies:   mbed Watchdog stm32-sensor-base2

Revision:
4:f6e22dd39313
Parent:
0:d383e2dee0f7
Child:
5:97117a837d2c
--- a/AS5045/AS5045.h	Tue Jul 07 15:02:22 2020 +0000
+++ b/AS5045/AS5045.h	Sat Jul 18 14:59:04 2020 +0000
@@ -16,7 +16,7 @@
   SPI _spi;												// MBED SPI instance
   DigitalOut _cs;										// MBED digital output pin
 
-  static const float MAX_VALUE = 4095;			// Maximum possible encoder position value (ticks for full rotation)
+  static const float MAX_VALUE = 1024;			// Maximum possible encoder position value (ticks for full rotation)
   static const float RESOLUTION = 0.08789;	// Encoder resolution (0.08789 degrees per tick)
   static const float SPI_FREQ = 500000;		// Frequency of the SPI bus
 };