|
@@ -12,7 +12,7 @@
|
|
|
#endif
|
|
|
|
|
|
#include <iostream>
|
|
|
-
|
|
|
+#include "xmlparam.h"
|
|
|
|
|
|
#include "grpcclientthread.h"
|
|
|
|
|
@@ -110,18 +110,22 @@ int main(int argc, char *argv[])
|
|
|
|
|
|
QString strpath = QCoreApplication::applicationDirPath();
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ if(argc < 2)
|
|
|
+ strpath = strpath + "/ADCIntelligentShow_grpc.xml";
|
|
|
+ else
|
|
|
+ strpath = argv[1];
|
|
|
|
|
|
|
|
|
-
|
|
|
+#ifdef Android
|
|
|
+ strpath = "/storage/emulated/0/ADCIntelligentShow_grpc.xml";
|
|
|
+#endif
|
|
|
+
|
|
|
+ iv::xmlparam::Xmlparam xp(strpath.toStdString());
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ gstrmode = xp.GetParam("useoutgrpc","false");
|
|
|
+ gstrserverip = xp.GetParam("serverip","192.168.1.102");
|
|
|
+ gstrserverport = xp.GetParam("serverport","30051");
|
|
|
+ gstrqueryinterval = xp.GetParam("queryinterval","10");
|
|
|
|
|
|
grpcclientthread xrpcthread;
|
|
|
|
|
@@ -139,6 +143,7 @@ int main(int argc, char *argv[])
|
|
|
xrpcthread.addquerymsgunit("lidar_obs",20000000,1);
|
|
|
xrpcthread.addquerymsgunit("brainstate",10000,1);
|
|
|
xrpcthread.addquerymsgunit("deciton",10000,1);
|
|
|
+ xrpcthread.addquerymsgunit("radar",100000,1);
|
|
|
xrpcthread.addctrlmsgunit("pad",1000,1);
|
|
|
xrpcthread.addctrlmsgunit("xodrreq",1000,1);
|
|
|
|