瀏覽代碼

change for yunle 03.

yuchuli 2 月之前
父節點
當前提交
9ff2737859
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      src/controller/controller_yunle_jd03/main.cpp
  2. 1 1
      src/tool/tool_controller_test/mainwindow.cpp

+ 2 - 2
src/controller/controller_yunle_jd03/main.cpp

@@ -91,7 +91,7 @@ void ExecSend();
 void executeDecition(const iv::brain::decition &decition)
 void executeDecition(const iv::brain::decition &decition)
 {
 {
 
 
-    double fwheel = decition.wheelangle();
+    double fwheel = decition.wheelangle() *(-1.0);  //Yunle 03 is negative.
 
 
     static int64_t nspeedcaltime = std::chrono::system_clock::now().time_since_epoch().count();
     static int64_t nspeedcaltime = std::chrono::system_clock::now().time_since_epoch().count();
     static double fneedvel = 0;
     static double fneedvel = 0;
@@ -263,7 +263,7 @@ void ExecSend()
     xraw.set_data(SCU_1,8);
     xraw.set_data(SCU_1,8);
     xraw.set_bext(false);
     xraw.set_bext(false);
     xraw.set_bremote(false);
     xraw.set_bremote(false);
-    xraw.set_len(24);
+    xraw.set_len(8);
     iv::can::canraw * pxraw195 = xmsg.add_rawmsg();
     iv::can::canraw * pxraw195 = xmsg.add_rawmsg();
     pxraw195->CopyFrom(xraw);
     pxraw195->CopyFrom(xraw);
 
 

+ 1 - 1
src/tool/tool_controller_test/mainwindow.cpp

@@ -218,7 +218,7 @@ void MainWindow::onTimer()
     else ntorquebig = 0;
     else ntorquebig = 0;
     if(ntorquebig>1000)
     if(ntorquebig>1000)
     {
     {
-        ui->lineEdit_drive->setText("0");
+//        ui->lineEdit_drive->setText("0");
         updatevalue();
         updatevalue();
     }
     }
 }
 }