Bladeren bron

上传文件至 'src/v2x/v2xhik'

dongjunhong 1 jaar geleden
bovenliggende
commit
99cb24c2a9
3 gewijzigde bestanden met toevoegingen van 91 en 0 verwijderingen
  1. 14 0
      src/v2x/v2xhik/light.qrc
  2. 27 0
      src/v2x/v2xhik/v2xTcpClient.xml
  3. 50 0
      src/v2x/v2xhik/v2xhik.pro

+ 14 - 0
src/v2x/v2xhik/light.qrc

@@ -0,0 +1,14 @@
+<RCC>
+    <qresource prefix="/light">
+        <file>light/zhixing-black.png</file>
+        <file>light/zhixing-green.png</file>
+        <file>light/zhixing-red.png</file>
+        <file>light/zhixing-yellow.png</file>
+        <file>light/light-black.png</file>
+        <file>light/light-green.png</file>
+        <file>light/light-red.png</file>
+        <file>light/light-yellow.png</file>
+        <file>light/faceto.png</file>
+        <file>light/noface.png</file>
+    </qresource>
+</RCC>

+ 27 - 0
src/v2x/v2xhik/v2xTcpClient.xml

@@ -0,0 +1,27 @@
+<xml>	
+	<node name="v2xTcpClient">
+		<param name="carVIN" value="A0000000CATARC001" />
+		<param name="obuNUM" value="1015" />
+                <param name="OBU_Type" value="eth" />
+                <param name="obuip" value="192.168.1.105" />
+                <param name="obuport" value="6666" />
+                <param name="port_name" value="/dev/ttyUART_232_B" />
+		<param name="baud" value="9600" />
+		<param name="hostIP" value="114.116.249.220" />
+		<param name="hostPort" value="18089" />
+		
+		<param name="gps" value="hcp2_gpsimu" />
+		<param name="camera" value="image00" />
+		<param name="lidar" value="lidar_pc" />
+		<param name="radar" value="radar4" />
+		<param name="vision_light" value="lightarray" />
+
+		<param name="light1Stophead" value="274.1300049" />
+		<param name="light1StopLat" value="39.10023499" />
+		<param name="light1StopLon" value="116.9982834" />
+		<param name="light2Stophead" value="180" />
+		<param name="light2StopLat" value="39.14916992" />
+		<param name="light2StopLon" value="117.0942535" />
+		<param name="OpenVisionSend" value="1" />
+	</node>
+</xml>

+ 50 - 0
src/v2x/v2xhik/v2xhik.pro

@@ -0,0 +1,50 @@
+QT -= gui
+QT       += network
+QT       += serialport
+QT       += core xml
+CONFIG += c++11 console
+CONFIG -= app_bundle
+greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
+# The following define makes your compiler emit warnings if you use
+# any feature of Qt which as been marked deprecated (the exact warnings
+# depend on your compiler). Please consult the documentation of the
+# deprecated API in order to know how to port your code away from it.
+DEFINES += QT_DEPRECATED_WARNINGS
+
+QMAKE_LFLAGS += -no-pie
+
+# You can also make your code fail to compile if you use deprecated APIs.
+# In order to do so, uncomment the following line.
+# You can also select to disable deprecated APIs only up to a certain version of Qt.
+#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
+INCLUDEPATH += $$PWD/../../../include/
+LIBS += -L$$PWD/../../../bin/ -lxmlparam -lmodulecomm -livlog -livexit -livfault -lprotobuf
+
+INCLUDEPATH += $$PWD/../../include/msgtype
+SOURCES += main.cpp \
+    v2x.cpp \
+    pc5.cpp \
+    mainwindow.cpp \
+    ../../include/msgtype/v2r.pb.cc \
+    ../../include/msgtype/gpsimu.pb.cc \
+    ../../include/msgtype/rawpic.pb.cc \
+    ../../include/msgtype/fusionobject.pb.cc \
+    ../../include/msgtype/radarobject.pb.cc \
+    ../../include/msgtype/lightarray.pb.cc
+
+HEADERS += \
+    v2x.h \
+    pc5.h \
+    mainwindow.h \
+    ../../include/msgtype/v2r.pb.h \
+    ../../include/msgtype/gpsimu.pb.h \
+    ../../include/msgtype/rawpic.pb.h \
+    ../../include/msgtype/fusionobject.pb.h \
+    ../../include/msgtype/radarobject.pb.h \
+    ../../include/msgtype/lightarray.pb.h \
+
+FORMS += \
+    mainwindow.ui
+
+RESOURCES += \
+    light.qrc