【刷新频率】1标签2基站串口发送数据频率提高不上来
软件版本BPHero_UWB_Location_SourceCode_V1.1_16MHz_V1.3用了1个标签2个基站修改了#define SLAVE_TAG_START_INDEX 0x01
这个值是5的时候数据频率大概2.3组,修改为1时候大概5.6组,怎么提高到更高呢
参考如下配置:
这个配置下频率应该在12-14Hz,如果再快,最直接方法需要把液晶显示部分注释掉,例如如下代码,因为每次都显示,当频率较高的时候,液晶显示会占用大量时间
if(Anthordistance_count>0)
{
sprintf(dist_str, "an0:%3.2fm", (float)Anthordistance/1000);
OLED_ShowString(0, 2,dist_str);
}
if(Anthordistance_count>0)
{
sprintf(dist_str, "an1:%3.2fm", (float)Anthordistance/1000);
OLED_ShowString(0, 4,dist_str);
}
if(Anthordistance_count>0)
{
sprintf(dist_str, "an2:%3.2fm", (float)Anthordistance/1000);
OLED_ShowString(0, 6,dist_str);
}
页:
[1]