|
@@ -155,7 +155,7 @@ void Radio::serialPortInit()
|
|
// }
|
|
// }
|
|
|
|
|
|
m_serialPort_Radio = new QSerialPort();
|
|
m_serialPort_Radio = new QSerialPort();
|
|
- m_serialPort_Radio->setPortName("/dev/ttyUSB1");
|
|
|
|
|
|
+ m_serialPort_Radio->setPortName("/dev/p900");
|
|
//m_serialPort_Radio->setPortName("/dev/pts/1");
|
|
//m_serialPort_Radio->setPortName("/dev/pts/1");
|
|
m_serialPort_Radio->setBaudRate(QSerialPort::Baud115200);
|
|
m_serialPort_Radio->setBaudRate(QSerialPort::Baud115200);
|
|
m_serialPort_Radio->setParity(QSerialPort::NoParity);
|
|
m_serialPort_Radio->setParity(QSerialPort::NoParity);
|
|
@@ -327,7 +327,7 @@ void Radio::upVirtualVehicleRaw()
|
|
virtualVehicleInfo.yaw[3] = (yaw)&0xff;
|
|
virtualVehicleInfo.yaw[3] = (yaw)&0xff;
|
|
|
|
|
|
int dataLen = sizeof(upVirtualVehicleInfo)/sizeof(unsigned char);
|
|
int dataLen = sizeof(upVirtualVehicleInfo)/sizeof(unsigned char);
|
|
- int headLen = PackagetHeadInfo(0x02,VirtualVehicle,comment,dataLen);
|
|
|
|
|
|
+ int headLen = PackagetHeadInfo(0x03,VirtualVehicle,comment,dataLen);
|
|
memcpy(sendBuf,&packageDataHead,headLen);
|
|
memcpy(sendBuf,&packageDataHead,headLen);
|
|
memcpy(sendBuf+headLen,&virtualVehicleInfo,dataLen);
|
|
memcpy(sendBuf+headLen,&virtualVehicleInfo,dataLen);
|
|
sendBuf[headLen+dataLen] = BCCEncode(sendBuf,headLen+dataLen);
|
|
sendBuf[headLen+dataLen] = BCCEncode(sendBuf,headLen+dataLen);
|