|
@@ -334,6 +334,11 @@ ADCIntelligentVehicle::ADCIntelligentVehicle(QWidget *parent)
|
|
|
// timermanualctrl->start(10);
|
|
|
|
|
|
//connect(ui->lineEdit_6, SIGNAL(textEdited(const QString &)), this, SLOT(savestabuyEditinfo(const QString &)));
|
|
|
+
|
|
|
+ mpamapreq = iv::modulecomm::RegisterSend("mapreq",1000,1);
|
|
|
+ shareMapReqMsg();
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -1842,3 +1847,23 @@ void ADCIntelligentVehicle::on_pb_v2xEn_clicked()
|
|
|
gIvlog->info("hmi","v2x enable:%d", mv2xStEn);
|
|
|
UpdateV2xStEn(mv2xStEn);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+void ADCIntelligentVehicle::shareMapReqMsg()
|
|
|
+{
|
|
|
+
|
|
|
+ iv::map::mapreq x;
|
|
|
+ x.set_maptype(1);
|
|
|
+ int nsize = x.ByteSize();
|
|
|
+ char * str = new char[nsize];
|
|
|
+ if(x.SerializeToArray(str,nsize))
|
|
|
+ {
|
|
|
+ iv::modulecomm::ModuleSendMsg(mpamapreq,str,nsize);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ std::cout<<"iv::map::mapreq serialize error."<<std::endl;
|
|
|
+ }
|
|
|
+ std::cout<<"iv::map::mapreq serialize OK."<<std::endl;
|
|
|
+ delete str;
|
|
|
+}
|