【类 型】:fix 调整电池容量更新率

【原  因】:前端得不到更新数据
【过  程】:
【影  响】:
This commit is contained in:
tk 2024-07-18 21:05:43 +08:00
parent a0177a9e7f
commit 08df7981cf

View File

@ -711,12 +711,12 @@ void pubThread()
fc.mav_request_data(); // 再向飞控请求一次 设定飞控输出数据流内容
}
// 设置对象成员 ps:心跳
doc[topicPub[0]] = topicPubMsg[0];
doc[topicPub[i]] = topicPubMsg[i];
}
else if (i == 10)
else if (i == 3 || i==10)
{
// 设置对象成员 ps:飞机状态 state
doc[topicPub[10]] = topicPubMsg[10];
// 设置对象成员 ps:3电池电量 10飞机状态state
doc[topicPub[i]] = topicPubMsg[i];
}
else if (topicPubMsg[i] != oldMsg[i])
{