I'm studying the communication between Crazyflie and LPS Anchor; i'm studying the Crazyflie firmware, in particular the script lpsTwrTag.c; in this script, after studying the TWR protocol, i observe that t_prop (https://github.com/bitcraze/crazyflie-f ... #L177-L181), that i think is time_propagation,
Code: Select all
tprop_ctn = ((tround1*tround2) - (treply1*treply2)) / (tround1 + tround2 + treply1 + treply2);
tprop = tprop_ctn / LOCODECK_TS_FREQ;
options->distance[current_anchor] = SPEED_OF_LIGHT * tprop;
- What is mean LOCODECK_TS_FREQ?
- What is the difference between tprop_ctn and the theoretycal t_f?
- Why tprop_ctn is calculated in that way?
- Finally, Why, for calculate tprop, tprop_ctn is divided by LOCODECK_TS_FREQ?
Alex