【类 型】:style 卫星定位加一些注释

【原  因】:
【过  程】:
【影  响】:
This commit is contained in:
tk 2024-07-29 13:25:17 +08:00
parent 1b98affadc
commit 3e55351de2

View File

@ -577,39 +577,28 @@ void mavlink_receiveCallback(uint8_t c)
switch (gps_raw_int.fix_type)
{
case 0:
{
topicPubMsg[9] = "No Fix";
}
topicPubMsg[9] = "No Fix"; // 无定位
break;
case 1:
{
topicPubMsg[9] = "No Fix";
}
topicPubMsg[9] = "Bad Fix"; // 差的定位(无效数据)
break;
case 2:
{
topicPubMsg[9] = "Fix 2D";
}
topicPubMsg[9] = "2D Fix"; // 2D定位只有经纬度
break;
case 3:
{
topicPubMsg[9] = "Fix 3D";
}
topicPubMsg[9] = "3D Fix"; // 3D定位经纬度和高度
break;
case 4:
{
topicPubMsg[9] = "DGPS"; // 不装rtk 最多到DGPS
}
topicPubMsg[9] = "DGPS"; // 差分GPS使用地面站进行修正,不使用rkt最多只能到DGPS
break;
case 5:
{
topicPubMsg[9] = "Float";
}
topicPubMsg[9] = "Float"; // RTK浮动解精度较高但不如固定解
break;
case 6:
topicPubMsg[9] = "RTK Fixed"; // RTK固定解高精度定位
break;
default:
{
topicPubMsg[9] = "Fixed";
}
topicPubMsg[9] = "Unknown"; // 未知状态
break;
}
}