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 CROTUS_XBee mbed-rtos Crotus_Com
Diff: Magneto.cpp
- Revision:
- 6:2605aa78ef9f
- Parent:
- 5:8142f455454b
diff -r 8142f455454b -r 2605aa78ef9f Magneto.cpp --- a/Magneto.cpp Mon Apr 03 18:55:55 2017 +0000 +++ b/Magneto.cpp Thu Apr 06 11:27:04 2017 +0000 @@ -8,17 +8,17 @@ Ticker calibrationTicker; - /* + int16_t minX = OR_MAX_VALUE; // The maximum value is put in the min so real values will always be smaller int16_t maxX = OR_MIN_VALUE; // The minimum value is put in the max so real values will always be bigger int16_t minY = OR_MAX_VALUE; // The maximum value is put in the min so real values will always be smaller int16_t maxY = OR_MIN_VALUE; // The minimum value is put in the max so real values will always be bigger - */ + - int16_t minX = 0xFFA0; + /*int16_t minX = 0xFFA0; int16_t maxX = 0x01DD; int16_t minY = 0xFD95; - int16_t maxY = 0x0054; + int16_t maxY = 0x0054;*/ int16_t offsetX = 0; int16_t offsetY = 0;