Ver código fonte

change changan_shenlan_adapter

yuchuli 1 ano atrás
pai
commit
667ea7b6c4

+ 2 - 2
src/decition/decition_brain_sf_changan_shenlan/decition/adc_adapter/changan_shenlan_adapter.cpp

@@ -80,13 +80,13 @@ iv::decition::Decition iv::decition::ChanganShenlanAdapter::getAdapterDeciton(GP
     controlSpeed = limitSpeed(realSpeed, controlBrake, dSpeed, controlSpeed);
 
     if(DecideGps00::minDecelerate<0){
-        controlBrake = max((0-DecideGps00::minDecelerate)*30,controlBrake);
+        controlBrake = max((0-DecideGps00::minDecelerate)*20,controlBrake);
         controlSpeed=0;
     }
     controlBrake=min(controlBrake,100.0f);
     controlBrake=max(controlBrake,0.0f);
 
-        (*decition)->brake = 0 - controlBrake/25;
+        (*decition)->brake = 0 - controlBrake/20;
         (*decition)->torque= controlSpeed;
         lastTorque=(*decition)->torque;