[类型] 加入更多错误提示和rtk重发
rtk重发后还是更可靠一些,并且不会导致数量大阻塞 # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动
This commit is contained in:
parent
3e3b6f08ee
commit
e909b7a3d3
@ -1359,8 +1359,8 @@ namespace Plane.CommunicationManagement
|
|||||||
|
|
||||||
// 重发一次,有序列号(target_component)飞机可以检测出来重复接收的
|
// 重发一次,有序列号(target_component)飞机可以检测出来重复接收的
|
||||||
//需要新固件支持
|
//需要新固件支持
|
||||||
// await WriteCommPacketAsync(0, MavComm.COMM_DOWNLOAD_COMM, packet).ConfigureAwait(false);
|
await WriteCommPacketAsync(0, MavComm.COMM_DOWNLOAD_COMM, packet).ConfigureAwait(false);
|
||||||
//await Task.Delay(80).ConfigureAwait(false); //没有延时得话如果超过110长度,连续发可能收不到
|
await Task.Delay(80).ConfigureAwait(false); //没有延时得话如果超过110长度,连续发可能收不到
|
||||||
|
|
||||||
|
|
||||||
//重发一次,有序列号(target_component)飞机可以检测出来重复接收的--需要新固件支持
|
//重发一次,有序列号(target_component)飞机可以检测出来重复接收的--需要新固件支持
|
||||||
|
@ -288,6 +288,7 @@ namespace Plane.Copters
|
|||||||
|
|
||||||
private static readonly Dictionary<int, string> ErrorIdToString = new Dictionary<int, string>
|
private static readonly Dictionary<int, string> ErrorIdToString = new Dictionary<int, string>
|
||||||
{
|
{
|
||||||
|
{1, "未知异常"},
|
||||||
{2, "气压计异常"},
|
{2, "气压计异常"},
|
||||||
{3, "磁罗盘异常"},
|
{3, "磁罗盘异常"},
|
||||||
{4, "GPS异常"},
|
{4, "GPS异常"},
|
||||||
@ -314,7 +315,17 @@ namespace Plane.Copters
|
|||||||
{25, "加速计需要重启"},
|
{25, "加速计需要重启"},
|
||||||
{26, "加速计不一致"},
|
{26, "加速计不一致"},
|
||||||
{27, "陀螺仪不一致"},
|
{27, "陀螺仪不一致"},
|
||||||
|
{28, "EKF需要定位"},
|
||||||
|
{29, "需要位置估计"},
|
||||||
|
{30, "GPS信号不好"},
|
||||||
|
{31, "EKF磁罗盘变动大"},
|
||||||
|
{32, "EKF位置变动大"},
|
||||||
|
{33, "EKF速度变动大"},
|
||||||
|
{34, "EKF高度变动大"},
|
||||||
|
{35, "需要高度估计"},
|
||||||
|
{36, "航姿没有心跳"},
|
||||||
|
{37, "磁罗盘没有心跳"},
|
||||||
|
{38, "安全开关没按"},
|
||||||
};
|
};
|
||||||
public String getcoptererrorstr(byte errorcode)
|
public String getcoptererrorstr(byte errorcode)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user