感谢楼主大神的帮助。我截获了一些自驾中的参数,但是还发现几个问题:
1:好像这22#消息格式和MAVLINK 那个百度文库里《MAVLink通讯协议全文》中的字段排列格式不一样啊。文档中是:
param_id[16字节], param_value[4字节],param_type[1字节],param_count[2字节],param_index[2字节]
但我收到的数据却是
FE 19 D6 01 01 16 , 00 00 00 40 , E8 00, BD 00 ,53 52 30 5F 52 43 5F 43 48 41 4E 00 00 00 00 00, 04 ,99 FC
貌似是param_value[4字节],param_count[2字节],],param_index[2字节],param_id[16字节], param_type[1字节],
但最后一字节貌似和那个TYPE表还是对不上,参数值的数据格式也猜不出来,还盼大虾进一步帮忙啊
附:我截获的一组数据。大虾能把解析结果告诉我吗?万分感谢了:
==============================================================================
FE 19 05 01 01 16 00 00 50 41 E8 00 00 00 46 4F 52 4D 41 54 5F 56 45 52 53 49 4F 4E 00 00 04 30 FF
FE 19 06 01 01 16 00 00 00 00 E8 00 01 00 53 59 53 49 44 5F 53 57 5F 54 59 50 45 00 00 00 02 AD DB
FE 19 09 01 01 16 00 00 80 3F E8 00 02 00 53 59 53 49 44 5F 54 48 49 53 4D 41 56 00 00 00 04 D7 79
FE 19 0A 01 01 16 00 00 7F 43 E8 00 03 00 53 59 53 49 44 5F 4D 59 47 43 53 00 00 00 00 00 04 68 7F
FE 19 0B 01 01 16 00 00 E6 42 E8 00 04 00 53 45 52 49 41 4C 33 5F 42 41 55 44 00 00 00 00 02 A2 FF
FE 19 0C 01 01 16 CD CC 4C 3E E8 00 05 00 4B 46 46 5F 50 54 43 48 43 4F 4D 50 00 00 00 CD 09 6D 66
FE 19 0D 01 01 16 00 00 00 3F E8 00 06 00 4B 46 46 5F 52 44 44 52 4D 49 58 00 00 00 00 00 09 EA B6
FE 19 0E 01 01 16 00 00 00 00 E8 00 07 00 4B 46 46 5F 50 54 43 48 32 54 48 52 00 00 00 00 09 8B 82
FE 19 0F 01 01 16 00 00 00 00 E8 00 08 00 4B 46 46 5F 54 48 52 32 50 54 43 48 00 00 00 00 09 26 71 21 47
FE 19 10 01 01 16 00 00 80 3F E8 00 09 00 4D 41 4E 55 41 4C 5F 4C 45 56 45 4C 00 00 00 00 02 8C 4B
FE 19 11 01 01 16 00 00 00 00 E8 00 0A 00 6C 61 6E 64 5F 70 69 74 63 68 5F 63 64 00 00 00 04 86 23
FE 19 12 01 01 16 00 00 C8 42 E8 00 0B 00 58 54 52 4B 5F 47 41 49 4E 5F 53 43 00 00 00 00 09 D3 6E
FE 19 13 01 01 16 00 80 3B 45 E8 00 0C 00 58 54 52 4B 5F 41 4E 47 4C 45 5F 43 44 00 00 00 04 FC 2D
FE 19 14 01 01 16 00 00 80 3F E8 00 0D 00 41 4C 54 5F 4D 49 58 00 00 00 00 00 00 00 00 00 09 F6 EF
FE 19 15 01 01 16 00 00 80 40 E8 00 0E 00 43 4D 44 5F 54 4F 54 41 4C 00 00 00 00 00 00 00 02 44 80
FE 19 16 01 01 16 00 00 00 00 E8 00 0F 00 43 4D 44 5F 49 4E 44 45 58 00 00 00 00 00 00 00 02 B1 0E
FE 19 17 01 01 16 00 00 F0 41 E8 00 10 00 57 50 5F 52 41 44 49 55 53 00 00 00 00 00 00 00 02 1A 38
FE 19 18 01 01 16 00 00 34 42 E8 00 11 00 57 50 5F 4C 4F 49 54 45 52 5F 52 41 44 00 00 00 02 2B FB
FE 19 19 01 01 16 00 00 00 00 E8 00 12 00 46 45 4E 43 45 5F 41 43 54 49 4F 4E 00 00 00 00 02 2B BC
FE 19 1A 01 01 16 00 00 00 00 E8 00 13 00 46 45 4E 43 45 5F 54 4F 54 41 4C 00 00 00 00 00 02 51 C1
。。。。。。。。
FE 19 01 01 01 16 00 00 00 00 E8 00 E4 00 4D 4E 54 5F 43 4F 4E 54 52 4F 4C 5F 5A 00 00 00 09 2A 66
FE 19 02 01 01 16 00 00 00 00 E8 00 E5 00 4D 4E 54 5F 53 54 41 42 5F 52 4F 4C 4C 00 00 00 02 F6 55
FE 19 03 01 01 16 00 00 00 00 E8 00 E6 00 4D 4E 54 5F 53 54 41 42 5F 50 49 54 43 48 00 00 02 0B 57
FE 19 04 01 01 16 00 00 00 00 E8 00 E7 00 4D 4E 54 5F 53 54 41 42 5F 59 41 57 00 00 00 00 02 CF 48
=========================================================================
还有,有些数据后边有规律的多出几个字节全是21 47,是怎么回事啊
|