|
@@ -225,6 +225,7 @@ ADCIntelligentVehicle::ADCIntelligentVehicle(QWidget *parent)
|
|
|
scaleFactor(1),
|
|
|
currentStepScaleFactor(1)
|
|
|
{
|
|
|
+
|
|
|
ui->setupUi(this);
|
|
|
gAV = this;
|
|
|
gIvlog->info("ADCIntelligentVehicle Start Initialize");
|
|
@@ -254,6 +255,8 @@ ADCIntelligentVehicle::ADCIntelligentVehicle(QWidget *parent)
|
|
|
ServiceCarStatus.lidar_y_offset = atof(xp.GetParam("lidar_y_offset","0").data());
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
ui->listWidget->setIconSize(QSize(40,40));
|
|
|
ui->stackedWidget->setCurrentIndex(0);
|
|
|
|
|
@@ -282,11 +285,12 @@ ADCIntelligentVehicle::ADCIntelligentVehicle(QWidget *parent)
|
|
|
// myview_small->scale(0.7,0.7);
|
|
|
//myview_small->centerOn(-200,-200);
|
|
|
|
|
|
+
|
|
|
/********************************** 百度地图显示 ********************************/
|
|
|
#ifndef NOHTMLMAP
|
|
|
if(gstrvehtype != "LuBan")
|
|
|
{
|
|
|
-
|
|
|
+#ifndef UBUNTU_22_04
|
|
|
mMapview = new QWebEngineView(ui->stackedWidget->widget(1));
|
|
|
// qDebug((QDir::currentPath()).toLatin1().data());
|
|
|
#ifndef USEGOOGLEMAP
|
|
@@ -296,11 +300,13 @@ ADCIntelligentVehicle::ADCIntelligentVehicle(QWidget *parent)
|
|
|
// mMapview->load(QUrl(QString("file:///%1/%2").arg(QApplication::applicationDirPath()).arg("googlemap.html")));
|
|
|
#endif
|
|
|
mMapview->setGeometry(1000,100,500,500);
|
|
|
+#endif
|
|
|
}
|
|
|
#endif
|
|
|
/********************************************************************************/
|
|
|
|
|
|
|
|
|
+
|
|
|
image = new QImage(900 * 2, 900 * 2, QImage::Format_RGB32);//画布的初始化大小设为600*500,使用32位颜色
|
|
|
//QImage的32、24、8位图。 图像格式:QImage::Format_RGB32 ,QImage::Format_RGB888,QImage::Format_Indexed8。
|
|
|
//QImage myImage2 = QImage(width, height, QImage::Format_…); 根据图像宽高来构造一幅图像,程序会自动根据图像格式对齐图像数据。
|
|
@@ -334,6 +340,8 @@ ADCIntelligentVehicle::ADCIntelligentVehicle(QWidget *parent)
|
|
|
|
|
|
msockrecv.bind(QHostAddress::Any,9998);//绑定端口
|
|
|
|
|
|
+
|
|
|
+
|
|
|
connect(&msockrecv,SIGNAL(readyRead()),this,SLOT(onRecvUDP())); //接收来自PAD的UDP数据报 readyRead():socket读取缓冲区有数据时发送此信号,在此信号的槽函数里读取缓冲区的数据。
|
|
|
|
|
|
ServiceCarStatus.speed = 0.0;
|
|
@@ -516,7 +524,7 @@ ADCIntelligentVehicle::ADCIntelligentVehicle(QWidget *parent)
|
|
|
|
|
|
ADCIntelligentVehicle::~ADCIntelligentVehicle()
|
|
|
{
|
|
|
- gIvlog->warn("ADCIntelligentVehchicle Exit.");
|
|
|
+// gIvlog->warn("ADCIntelligentVehchicle Exit.");
|
|
|
iv::modulecomm::Unregister(mpaplantrace);
|
|
|
iv::modulecomm::Unregister(mpamapreq);
|
|
|
iv::modulecomm::Unregister(mpManualCtrl);
|
|
@@ -969,6 +977,7 @@ void ADCIntelligentVehicle::onStateTimerMap()
|
|
|
#ifndef NOHTMLMAP
|
|
|
if(gstrvehtype != "LuBan")
|
|
|
{
|
|
|
+#ifndef UBUNTU_22_04
|
|
|
double flat = ServiceCarStatus.location->gps_lat;
|
|
|
double flon = ServiceCarStatus.location->gps_lng;
|
|
|
double fang = ServiceCarStatus.location->ins_heading_angle;
|
|
@@ -988,6 +997,7 @@ void ADCIntelligentVehicle::onStateTimerMap()
|
|
|
// "new google.maps.Map(document.getElementById('map'), mapOptions);");
|
|
|
// mMapview->page()->runJavaScript(js);
|
|
|
|
|
|
+#endif
|
|
|
#endif
|
|
|
}
|
|
|
#endif
|