Browse Source

change for yunle 03.

yuchuli 2 tháng trước cách đây
mục cha
commit
9ff2737859

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

@@ -91,7 +91,7 @@ void ExecSend();
 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 double fneedvel = 0;
@@ -263,7 +263,7 @@ void ExecSend()
     xraw.set_data(SCU_1,8);
     xraw.set_bext(false);
     xraw.set_bremote(false);
-    xraw.set_len(24);
+    xraw.set_len(8);
     iv::can::canraw * pxraw195 = xmsg.add_rawmsg();
     pxraw195->CopyFrom(xraw);
 

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

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