pozyxLabs / Pozyx-Arduino-library

The Arduino library for use with the pozyx accurate indoor positioning system.
https://www.pozyx.io
MIT License
78 stars 53 forks source link

POZYX_OPERATION_MODE register values backwards #45

Closed ghost closed 7 years ago

ghost commented 7 years ago

My anchor boards (that do not have a jumper on the T/A pins) appear to be reporting "01" for the POZYX_OPERATION_MODE and the arduino shields (that do have a jumper on the T/A pins) appear to be reporting "00". Based on the documentation and arduino/python library, this seem backwards.

samuelvdv commented 7 years ago

Hello, this seems to be wrong in the documentation. It should be fixed now here: https://www.pozyx.io/Documentation/Datasheet/RegisterOverview#POZYX_OPERATION_MODE

Unless you saw this documentation somewhere else?

Thanks!

ghost commented 7 years ago

Yes, the values are also backwards in the arduino and python libraries. https://github.com/pozyxLabs/Pozyx-Arduino-library/blob/8473bdc1332faf25dcbda78f241e7007f4bd456b/Pozyx_definitions.h#L223-L224 https://github.com/pozyxLabs/Pozyx-Python-library/blob/35cc3fef0da5f374b98bb2fa7f97050e750d8673/pypozyx/definitions/constants.py#L38-L39