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

ready_to_localize of doAnchorCalibration #37

Closed qdzhaozx closed 8 years ago

qdzhaozx commented 8 years ago

To call the function doAnchorCalibration,the problem happens in step to add devices by dimension be POZYX_2_5_D,the function returns zero.


// in 2.5D mode, we must supply the heights of all the anchors if(dimension == POZYX_2_5D){ device_coordinates_t anchor; for(i=0; i< num_anchors; i++){ anchor.network_id = anchors[i]; anchor.flag = 0x1; anchor.pos.x = 0; anchor.pos.y = 0; anchor.pos.z = heights[i]; status = Pozyx.addDevice(anchor); delay(500); }

qdzhaozx commented 8 years ago

latest news! I test the function "remoteRegRead" to read 4 anchors ID and SW versions ,the result is normal .Print log is like follows: get anchor informations: get remote status 1 who am i: 43 firmware version: 1 hardware version: 2

So why not work of "addDevice"??

And function "clearDevices" is also normal!

samuelvdv commented 8 years ago

Hello,

From your information it is clear the the devices do not have the latest firmware. It is strongly recommended to upgrade to the latest firmware on all devices.

If you do not want to upgrade the firmware for some reason, you can still use the older library version found here: https://github.com/pozyxLabs/Pozyx-Arduino-library/releases