用于接收和记录无人机数据的类。 更多...
Public 成员函数 | |
| __init__ (self, mav) | |
| 构造函数,初始化MavDataRec类的实例。 | |
| startRecMsg (self, NameList=['HIGHRES_IMU'], LenList=[10]) | |
| 开始监听消息的函数。 | |
| stopRecMsg (self) | |
| 停止监听消息的函数。 开始监听消息的函数 | |
| getMavMsg (self) | |
| 在单独的线程中运行,用于获取无人机消息。 | |
Public 属性 | |
| mav = mav | |
| dict | msgDic = {} |
| list | NameList = [''] |
| int | LenList = 0 |
| t1 = threading.Thread(target=self.getMavMsg, args=()) | |
| bool | t1Stop = False |
用于接收和记录无人机数据的类。
| getMavMsg | ( | self | ) |
在单独的线程中运行,用于获取无人机消息。
| startRecMsg | ( | self, | |
| NameList = ['HIGHRES_IMU'], | |||
| LenList = [10] ) |
开始监听消息的函数。
| NameList | 要监听的消息名称列表。 |
| LenList | 每个消息名称对应的消息数量限制列表。 开始监听消息的函数 |
| stopRecMsg | ( | self | ) |
停止监听消息的函数。 开始监听消息的函数