Namespaces | Functions | Variables
xbot_checker3.py File Reference

Go to the source code of this file.

Namespaces

 xbot_checker3
 

Functions

def xbot_checker3.check (s)
 
def xbot_checker3.getCameraId ()
 
def xbot_checker3.recv (serial)
 

Variables

 xbot_checker3.acc_x = struct.unpack('<h', payload[8:12].decode('hex'))[0]
 
 xbot_checker3.acc_y = struct.unpack('<h', payload[12:16].decode('hex'))[0]
 
 xbot_checker3.acc_z = struct.unpack('<h', payload[16:20].decode('hex'))[0]
 
bool xbot_checker3.arm_pluged = False
 
string xbot_checker3.cmd = 'udevadm info -a -n '
 
 xbot_checker3.data = str(binascii.b2a_hex(s))
 
bool xbot_checker3.debug = False
 
 xbot_checker3.dev_name = str(port_list[i]).split(' ')[0]
 
 xbot_checker3.error_status = struct.unpack('B', payload[100:102].decode('hex'))[0]
 
 xbot_checker3.f = open("udev/73-xbot.rules",'r')
 
 xbot_checker3.gyro_x = struct.unpack('<h', payload[20:24].decode('hex'))[0]
 
 xbot_checker3.gyro_y = struct.unpack('<h', payload[24:28].decode('hex'))[0]
 
 xbot_checker3.gyro_z = struct.unpack('<h', payload[28:32].decode('hex'))[0]
 
 xbot_checker3.label = payload[0:2]
 
string xbot_checker3.label_arm = 'USB2.0-Serial'
 
string xbot_checker3.label_PCB1 = 'aa5530'
 
string xbot_checker3.label_PCB2 = 'aa5538'
 
string xbot_checker3.label_rplidar = 'CP2102'
 
 xbot_checker3.left_encoder = int(payload[2:6],16)
 
 xbot_checker3.mag_x = struct.unpack('<h', payload[32:36].decode('hex'))[0]
 
 xbot_checker3.mag_y = struct.unpack('<h', payload[36:40].decode('hex'))[0]
 
 xbot_checker3.mag_z = struct.unpack('<h', payload[40:44].decode('hex'))[0]
 
 xbot_checker3.output
 
 xbot_checker3.payload = ss_PCB1[6:-2]
 
 xbot_checker3.PCB1_dev_name = dev_name
 
bool xbot_checker3.PCB1_pluged = False
 
 xbot_checker3.PCB1_serial = output.split('"')[1]
 
 xbot_checker3.PCB2_dev_name = dev_name
 
bool xbot_checker3.PCB2_pluged = False
 
 xbot_checker3.PCB2_serial = output.split('"')[1]
 
 xbot_checker3.pitch = struct.unpack('<f', payload[52:60].decode('hex'))[0]
 
 xbot_checker3.pitch_platform = struct.unpack('B', payload[4:6].decode('hex'))[0]
 
 xbot_checker3.port_list = list(serial.tools.list_ports.comports())
 
 xbot_checker3.port_num = len(port_list)
 
 xbot_checker3.q1 = struct.unpack('<f', payload[68:76].decode('hex'))[0]
 
 xbot_checker3.q2 = struct.unpack('<f', payload[76:84].decode('hex'))[0]
 
 xbot_checker3.q3 = struct.unpack('<f', payload[84:92].decode('hex'))[0]
 
 xbot_checker3.q4 = struct.unpack('<f', payload[92:100].decode('hex'))[0]
 
 xbot_checker3.roll = struct.unpack('<f', payload[60:68].decode('hex'))[0]
 
bool xbot_checker3.rplidar_pluged = False
 
 xbot_checker3.s = recv(serial1)
 
 xbot_checker3.serial1 = serial.Serial(dev_name, 115200, timeout=0.5)
 
string xbot_checker3.ss = ''
 
string xbot_checker3.ss_PCB1 = ''
 
string xbot_checker3.ss_PCB2 = ''
 
 xbot_checker3.status
 
 xbot_checker3.time_stamp = struct.unpack('<H', payload[102:106].decode('hex'))[0]
 
 xbot_checker3.volume = struct.unpack('B', payload[6:8].decode('hex'))[0]
 
 xbot_checker3.yaw = -struct.unpack('<f', payload[44:52].decode('hex'))[0]
 
 xbot_checker3.yaw_platform = struct.unpack('B', payload[2:4].decode('hex'))[0]
 


xbot_tools
Author(s):
autogenerated on Sat Oct 10 2020 03:28:22