|
@@ -58,7 +58,7 @@ void executeDecition(const iv::brain::decition decition)
|
|
|
std::cout<<" brake is "<<decition.brake()<<std::endl;
|
|
|
std::cout<<"drive_mode is "<<decition.mode()<<std::endl;
|
|
|
std::cout<<" dangwei is "<<decition.gear()<<std::endl;
|
|
|
- std::cout<<"dspeed is" << decition.speed()<<std::endl;
|
|
|
+ std::cout<<"dspeed is " << decition.speed()<<std::endl;
|
|
|
gcontroller->inialize();
|
|
|
gcontroller->control_wheel(decition.wheelangle());
|
|
|
gcontroller->control_brake(decition.brake());
|
|
@@ -207,14 +207,14 @@ int main(int argc, char *argv[])
|
|
|
QString strpath = QCoreApplication::applicationDirPath();
|
|
|
|
|
|
if(argc < 2)
|
|
|
- strpath = strpath + "/controller_midcar.xml";
|
|
|
+ strpath = strpath + "/controller_yuhesen.xml";
|
|
|
else
|
|
|
strpath = argv[1];
|
|
|
std::cout<<strpath.toStdString()<<std::endl;
|
|
|
|
|
|
- gdecition_def.set_brake(0);
|
|
|
- gdecition_def.set_torque(0);
|
|
|
- gdecition_def.set_speed(105);
|
|
|
+// gdecition_def.set_brake(0);
|
|
|
+// gdecition_def.set_torque(0);
|
|
|
+// gdecition_def.set_speed(105);
|
|
|
gTime.start();
|
|
|
|
|
|
gcontroller = boost::shared_ptr<iv::control::Controller>(new iv::control::Controller());
|