*!------------------------------------------------------------------------------------------------------------------ * @fn dwt_getrangebias() * * @brief This function is used to return therange bias correction need for TWR with DW1000 units. * * inputparameters: * @param chan - specifies the operatingchannel (e.g. 1, 2, 3, 4, 5, 6 or 7) //指定工作信道 * @param range - the calculated distancebefore correction * @paramprf - this is the PRF e.g. DWT_PRF_16M or DWT_PRF_64M * * output parameters * * returns correction needed in meters */
doubledwt_getrangebias(uint8 chan, float range, uint8 prf) { // First get the lookup index that corresponds to givenrange for a particular channel at 16M PRF 首先获取与16M PRF下特定通道的给定范围相对应的查找索引 int i = 0 ; int chanIdx ; int cmoffseti ; // Integernumber of CM offset 整数 厘米偏移量
double mOffset ; // Finaloffset result in metres 最终结果
// NB: note we may get some small negitivevalues e.g. up to -50 cm. 我们可能求出来负数
int rangeint25cm = (int) (range * 4.00) ; // Convert range to integer number of 25cm values. 将范围转换为25cm值的整数。(之下略) 问题:可以分别说一下信道的含义、PRF的含义、还有Convert range to integer number of 25cm values 的意义吗? 万分感谢~ 也可以直接给我粘一段用户手册看看
|