字符串的格式以及如何从中获取值

时间:2014-10-08 12:05:49

标签: math logic

我正在研究分析项目,它们是一些消息

​Ex : $PAVBADC,08,1.7,5.7,5.6,6.4,1.5,5.8,5.5,4.2,CB4*74~02

     a:         1-8,number of following analogous values
     xx.xxx: analogous value
     name:   source description
     hh:        checksum

CB4,AA,0,--------azimuth 1 - setpoint rpm from lever:%:2.1:2.4:8.1:0:0:100
CB4,AA,1,--------azimuth 1 - rpm feedback:rpm:5.5:5.5:9.2:0:0:300
CB4,AA,2,--------azimuth 1 - setpoint steering from lever:°:9.5:5.5:1.6:-180:0:180
CB4,AA,3,--------azimuth 1 - steering feedback:°:9.5:5.5:1.6:-180:0:180
CB4,AA,4,--------azimuth 2 - setpoint rpm from lever:%:2.1:2.4:8.1:0:0:100
CB4,AA,5,--------azimuth 2 - rpm feedback:rpm:5.5:5.5:9.2:0:0:300
CB4,AA,6,--------azimuth 2 - setpoint steering from lever:°:9.4:5.4:1.6:-180:0:180
CB4,AA,7,--------azimuth 2 - steering feedback:°:9.4:5.6:1.6:-180:0:180

任何人都可以通过比较模拟值和范围给出来解释如何获得值 像

1.7 -> %:2.1:2.4:8.1:0:0:100

我尝试了很多但却找不到。

感谢任何帮助。

0 个答案:

没有答案