Pārlūkot izejas kodu

fix(congtroller_midcar,grpc_BS):add protomake to pro file.fix a spelling error in controller midcar

HAPO-9# 3 gadi atpakaļ
vecāks
revīzija
d76d917224

+ 1 - 1
src/controller/controller_midcar/main.cpp

@@ -291,7 +291,7 @@ int main(int argc, char *argv[])
     gstrmemcansend = xp.GetParam("cansend","cansend0");
     gstrmemdecition = xp.GetParam("dection","deciton");
     gstrmemremote =  xp.GetParam("remotectrl","remotectrl");
-    gstrmemPaltformFeedback = xp.GetParam("paltformFeedback","paltformFeedback");
+    gstrmemPaltformFeedback = xp.GetParam("paltformFeedback","platformFeedback");
 
     std::string strremote = xp.GetParam("allowremote","true");
     if(strremote == "true")

+ 2 - 1
src/driver/driver_cloud_grpc_client_BS/driver_cloud_grpc_client_BS.pro

@@ -16,6 +16,8 @@ DEFINES += QT_DEPRECATED_WARNINGS
 # 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
 
+unix:system("./protomake.sh")
+
 SOURCES += \
         VehicleControl.grpc.pb.cc \
         VehicleControl.pb.cc \
@@ -66,7 +68,6 @@ else: unix:!android: target.path = /opt/$${TARGET}/bin
 }
 
 
-
 HEADERS += \
         VehicleControl.grpc.pb.h \
         VehicleControl.pb.h \

+ 3 - 0
src/driver/driver_cloud_grpc_client_BS/protomake.sh

@@ -0,0 +1,3 @@
+#!/bin/bash
+protoc -I . --cpp_out=. VehicleUpload.proto VehiclePatrol.proto VehicleControl.proto VehicleUpload_service.proto VehiclePatrol_service.proto VehicleControl_service.proto
+exit 0