|
@@ -30,14 +30,14 @@ struct msgunit
|
|
|
|
|
|
uint8_t gShift_Status = 3;//3 p 4 r 5 n 6 d
|
|
|
|
|
|
-std::string gstrserverip = "139.9.235.66";//"123.57.212.138";
|
|
|
+std::string gstrserverip = "111.33.136.150";//"123.57.212.138";
|
|
|
std::string gstruploadPort = "10591";//"9000";
|
|
|
std::string gstrpatrolPort = "10592";//"9000";
|
|
|
std::string gstrcontrolPort = "20591";//"9000";
|
|
|
std::string gstruploadInterval = "500";
|
|
|
-std::string gstrpatrolInterval = "500";
|
|
|
+std::string gstrpatrolInterval = "1000";
|
|
|
std::string gstrcontrolInterval = "100";
|
|
|
-std::string gstruploadMapInterval = "500";
|
|
|
+std::string gstruploadMapInterval = "1000";
|
|
|
std::string gstrid = "1234567890123456789H";
|
|
|
std::string gstrplateNumber = "津A123456";
|
|
|
|
|
@@ -206,17 +206,17 @@ int main(int argc, char *argv[])
|
|
|
vehicleuploaddata->start();
|
|
|
|
|
|
// std::cout<<control_str<<std::endl;
|
|
|
- VehicleChangeCtrlModeClient *vehiclechangectrlmode = new VehicleChangeCtrlModeClient(grpc::CreateChannel(control_str, grpc::InsecureChannelCredentials()));
|
|
|
- VehicleControlClient *vehiclecontrol = new VehicleControlClient(grpc::CreateChannel(control_str, grpc::InsecureChannelCredentials()));
|
|
|
- qRegisterMetaType<org::jeecg::defsControl::grpc::CtrlMode>("org::jeecg::defsControl::grpc::CtrlMode"); ///< to solve the problem of signal and slot being in different threads
|
|
|
- QObject::connect(vehiclechangectrlmode,&VehicleChangeCtrlModeClient::ctrlMode_Changed,vehiclecontrol,&VehicleControlClient::ctrlMode_Changed_Slot);
|
|
|
- vehiclechangectrlmode->start();
|
|
|
- vehiclecontrol->start();
|
|
|
-
|
|
|
- VehicleUploadMapClient *vehicleuploadmap = new VehicleUploadMapClient(grpc::CreateChannel(control_str, grpc::InsecureChannelCredentials()));
|
|
|
- QObject::connect(vehicleuploadmap,&VehicleUploadMapClient::patrolPOI_Recieved,vehicleuploaddata,&DataExchangeClient::patrolPOI_Recieved_Slot);
|
|
|
- QObject::connect(vehicleuploaddata,&DataExchangeClient::uploadPath_Finished,vehicleuploadmap,&VehicleUploadMapClient::uploadPath_Finished_Slot);
|
|
|
- vehicleuploadmap->start();
|
|
|
+// VehicleChangeCtrlModeClient *vehiclechangectrlmode = new VehicleChangeCtrlModeClient(grpc::CreateChannel(control_str, grpc::InsecureChannelCredentials()));
|
|
|
+// VehicleControlClient *vehiclecontrol = new VehicleControlClient(grpc::CreateChannel(control_str, grpc::InsecureChannelCredentials()));
|
|
|
+// qRegisterMetaType<org::jeecg::defsControl::grpc::CtrlMode>("org::jeecg::defsControl::grpc::CtrlMode"); ///< to solve the problem of signal and slot being in different threads
|
|
|
+// QObject::connect(vehiclechangectrlmode,&VehicleChangeCtrlModeClient::ctrlMode_Changed,vehiclecontrol,&VehicleControlClient::ctrlMode_Changed_Slot);
|
|
|
+// vehiclechangectrlmode->start();
|
|
|
+// vehiclecontrol->start();
|
|
|
+
|
|
|
+// VehicleUploadMapClient *vehicleuploadmap = new VehicleUploadMapClient(grpc::CreateChannel(control_str, grpc::InsecureChannelCredentials()));
|
|
|
+// QObject::connect(vehicleuploadmap,&VehicleUploadMapClient::patrolPOI_Recieved,vehicleuploaddata,&DataExchangeClient::patrolPOI_Recieved_Slot);
|
|
|
+// QObject::connect(vehicleuploaddata,&DataExchangeClient::uploadPath_Finished,vehicleuploadmap,&VehicleUploadMapClient::uploadPath_Finished_Slot);
|
|
|
+// vehicleuploadmap->start();
|
|
|
|
|
|
// std::cout<<patrol_str<<std::endl;
|
|
|
// VehiclePatrolExceptionClient vehiclepatrol(grpc::CreateChannel(patrol_str, grpc::InsecureChannelCredentials()));
|