|
@@ -343,7 +343,16 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
gps_decition->speed = dSpeed;
|
|
|
|
|
|
gps_decition->accelerator = -0.5;
|
|
|
- gps_decition->brake=10;
|
|
|
+ gps_decition->torque = 0.0;
|
|
|
+// gps_decition->brake=10;
|
|
|
+ if(ServiceCarStatus.msysparam.mvehtype=="shenlan") //长安深蓝决策发的brake是负值的时候才刹车,利用的是扭矩
|
|
|
+ {
|
|
|
+ gps_decition->brake=-10;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ gps_decition->brake=10;
|
|
|
+ }
|
|
|
return gps_decition;
|
|
|
}
|
|
|
|
|
@@ -1081,7 +1090,16 @@ iv::decition::Decition iv::decition::DecideGps00::getDecideFromGPS(GPS_INS now_g
|
|
|
gps_decition->speed = dSpeed;
|
|
|
|
|
|
gps_decition->accelerator = -0.5;
|
|
|
- gps_decition->brake=10;
|
|
|
+ gps_decition->torque = 0.0;
|
|
|
+ //gps_decition->brake=10; //
|
|
|
+ if(ServiceCarStatus.msysparam.mvehtype=="shenlan") //长安深蓝决策发的brake是负值的时候才刹车,利用的是扭矩
|
|
|
+ {
|
|
|
+ gps_decition->brake=-10;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ gps_decition->brake=10;
|
|
|
+ }
|
|
|
return gps_decition;
|
|
|
}
|
|
|
|