|
@@ -170,7 +170,7 @@ void executeDecition(const iv::brain::decition decition)
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
- gPlatformFeedback.set_throttle(decition.torque());
|
|
|
+ gPlatformFeedback.set_throttle(decition.torque()*12.5); //12.5 for yuhesen, 8km/h means 100%
|
|
|
gPlatformFeedback.set_brake(decition.brake());
|
|
|
gPlatformFeedback.set_steeringwheelangle(decition.wheelangle());
|
|
|
|
|
@@ -212,9 +212,10 @@ void ListenRemotectrl(const char * strdata,const unsigned int nSize,const unsign
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
+ std::cout<<" remote acc: "<<xrc.acc()<<" wheel"<<xrc.wheel()<<" brake: "<<xrc.brake()<< std::endl;
|
|
|
gbAutoDriving = false;
|
|
|
gPlatformFeedback.set_typefeedback(iv::platformFeedback::ctrlType::platformFeedback_ctrlType_REMOTE);
|
|
|
- xdecition.set_torque(xrc.acc());
|
|
|
+ xdecition.set_torque(xrc.acc()*0.08);
|
|
|
xdecition.set_brake(xrc.brake());
|
|
|
xdecition.set_wheelangle(xrc.wheel()*5.5f);
|
|
|
if(xrc.shift() > 0) //D shift
|
|
@@ -298,7 +299,7 @@ void ExecSend()
|
|
|
int a = ServiceControlStatus.command11.byte[5]&0x0f;
|
|
|
if(a != 0x04)
|
|
|
{
|
|
|
- qDebug("not D.");
|
|
|
+// qDebug("not D.");
|
|
|
}
|
|
|
xraw.set_bext(false);
|
|
|
xraw.set_bremote(false);
|