Hello jremington, thank you for replying. :)
Alright, i understand where you're coming from right now.
But here's another problem. Let's say for my X Axis, the value for my X Axie is stored inside the variable " coor.x "
each time the void loop() , loops, it produces different X value. So how can i code for it to add up the different X values.? Like for eg, the first time it loops, coor.x = 1000mm , second time it loops, coor.x = 1150, third time it loops coor.x = 1200. when the pozyx isnt even moving, which is the current problem now, when it doesn't move at all the X, Y and Z coordinates varies too much.
Though after each loop the value is different, the variable that stores it is the same. So i don't really know how to code for it.
I am very sure if i just change it like this, the results won't be the expected results.
Serial.println(remote_id , HEX);
Serial.print(", x(mm): ");
avg_x_coor = coor.x + coor.x;
Serial.print(", y(mm): ");
Serial.print(", z(mm): ");
So i don't really know how to code for the averaging.
i understand where you're coming from now and it makes a lot of sense, just that i am not very familliar with c++ coding, thus i don't know how to code for it. Sorry if i caused a lot of trouble for you.