|
@@ -190,9 +190,9 @@ void executeDecition(const iv::brain::decition &decition)
|
|
|
/*制动过程用的减速度,加速用扭矩*/
|
|
|
_m24E.ACC_AccTrqReq = ECU_24E_ACC_AccTrqReq_toS(decition.torque());
|
|
|
_m24E.ACC_AccTrqReqActive = decition.acc_active();
|
|
|
- if(decition.brake()<(-1.5))
|
|
|
+ if(decition.brake()<(-5.0))
|
|
|
{
|
|
|
- _m24E.ACC_ACCTargetAcceleration = ECU_24E_ACC_ACCTargetAcceleration_toS(-1.5);
|
|
|
+ _m24E.ACC_ACCTargetAcceleration = ECU_24E_ACC_ACCTargetAcceleration_toS(-5.0);
|
|
|
}
|
|
|
else
|
|
|
_m24E.ACC_ACCTargetAcceleration = ECU_24E_ACC_ACCTargetAcceleration_toS(decition.brake());
|
|
@@ -357,6 +357,8 @@ void Activate()
|
|
|
{
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
|
|
iv::brain::decition xdecition;
|
|
|
+ xdecition.set_brake(0.0);
|
|
|
+ xdecition.set_torque(0.0);
|
|
|
// for(int j=0;j<100000;j++)
|
|
|
// {
|
|
|
std::cout<<" run "<<std::endl;
|
|
@@ -392,6 +394,9 @@ void Activate()
|
|
|
void UnAcitvate()
|
|
|
{
|
|
|
iv::brain::decition xdecition;
|
|
|
+
|
|
|
+ xdecition.set_brake(0.0);
|
|
|
+ xdecition.set_torque(0.0);
|
|
|
for(int i = 0; i < 3; i++){
|
|
|
xdecition.set_wheelangle(0);
|
|
|
xdecition.set_angle_mode(1);
|