Skip to content

Commit 6c81338

Browse files
authored
Updated multitag with setSelectionOfAnchors
1 parent fc74571 commit 6c81338

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/multitag_positioning/multitag_positioning.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void setup(){
5959
// configures all remote tags and prints the success of their configuration.
6060
setAnchorsManual();
6161
setTagsAlgorithm();
62-
delay(2000);
62+
delay(1000);
6363

6464
Serial.println(F("Starting positioning: "));
6565
}
@@ -140,6 +140,9 @@ void setAnchorsManual(){
140140
anchor.pos.z = heights[j];
141141
status &= Pozyx.addDevice(anchor, tags[i]);
142142
}
143+
if (num_anchors > 4){
144+
Pozyx.setSelectionOfAnchors(POZYX_ANCHOR_SEL_AUTO, num_anchors, tags[i]);
145+
}
143146
if (status == POZYX_SUCCESS){
144147
Serial.print("Configuring ID 0x");
145148
Serial.print(tags[i], HEX);

0 commit comments

Comments
 (0)