Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino API still detects 0 anchors even after issue #1 #2

Open
okachobi opened this issue Feb 20, 2016 · 4 comments
Open

Arduino API still detects 0 anchors even after issue #1 #2

okachobi opened this issue Feb 20, 2016 · 4 comments

Comments

@okachobi
Copy link

Even after adding a delay(10000) after setup, the pozyx arduino library is reporting 0 anchors when 4 are setup...

----------POZYX POSITIONING V1.0----------
NOTES:

  • No parameters required.
  • System will auto start calibration
  • System will auto start positioning
    ----------POZYX POSITIONING V1.0----------

Performing auto anchor calibration:
1
list size: 0
Calibration result:
Anchors found: 0
Starting positioning:

@RoboBil
Copy link

RoboBil commented Mar 1, 2016

I've had the same issue. Waiting for the fix.

@samuelvdv
Copy link
Contributor

Thank you for the information,
We are changing the auto calibration function to solve this and will update it soon.
In the mean time, you could add the devices manually if you know the coordinates:

Here is some sample code to add an anchor manually:

`device_coordinates_t anchor;

anchor.network_id = 0x666D;
anchor.flag = 0x1; // indicate that it is an anchor.
anchor.pos.x = 0;
anchor.pos.y = 0;
anchor.pos.z = 3900;
Pozyx.addDevice(anchor);`

Also, we'll be putting Arduino documentation online next week where more information about the functions and their parameters is provided.

Best!

@RoboBil
Copy link

RoboBil commented Mar 2, 2016

That did it. Just added the code below right after cleardevices line in the setup

Thanks

RoboBill

device_coordinates_t anchor1;
anchor1.network_id = 0x6666;
anchor1.flag = 0x1; // indicate that it is an anchor.
anchor1.pos.x = 0;
anchor1.pos.y = 0;
anchor1.pos.z = 1067;
Pozyx.addDevice(anchor1);

device_coordinates_t anchor2;
anchor2.network_id = 0x6642;
anchor2.flag = 0x1; // indicate that it is an anchor. 
anchor2.pos.x = 8800;
anchor2.pos.y = 0;
anchor2.pos.z = 1067;
Pozyx.addDevice(anchor2);
device_coordinates_t anchor3;
anchor3.network_id = 0x666B;
anchor3.flag = 0x1; // indicate that it is an anchor. 
anchor3.pos.x = 0;
anchor3.pos.y = 3600;
anchor3.pos.z = 1067;
Pozyx.addDevice(anchor3);

device_coordinates_t anchor4;
anchor4.network_id = 0x6643;
anchor4.flag = 0x1; // indicate that it is an anchor. 
anchor4.pos.x = 8800;
anchor4.pos.y = 3600;
anchor4.pos.z = 1067;
Pozyx.addDevice(anchor4);

@SilkSama
Copy link

SilkSama commented Jun 3, 2016

Hi, have you some information about the date of the next release with the automatic calibrating fix ?
Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants