|
@@ -152,6 +152,7 @@ public class VehicleService {
|
|
.replaceAll("centroidToGround", vehiclePO.getCentroidToGround())
|
|
.replaceAll("centroidToGround", vehiclePO.getCentroidToGround())
|
|
.replaceAll("wheelbase", vehiclePO.getWheelbase().toString())
|
|
.replaceAll("wheelbase", vehiclePO.getWheelbase().toString())
|
|
.replaceAll("sprungMass", vehiclePO.getSprungMass())
|
|
.replaceAll("sprungMass", vehiclePO.getSprungMass())
|
|
|
|
+ .replaceAll("vehicleLength", vehiclePO.getVehicleLength())
|
|
.replaceAll("vehicleWidth", vehiclePO.getVehicleWidth())
|
|
.replaceAll("vehicleWidth", vehiclePO.getVehicleWidth())
|
|
.replaceAll("rotationalInertiaX", vehiclePO.getRotationalInertiaX())
|
|
.replaceAll("rotationalInertiaX", vehiclePO.getRotationalInertiaX())
|
|
.replaceAll("rotationalInertiaY", vehiclePO.getRotationalInertiaY())
|
|
.replaceAll("rotationalInertiaY", vehiclePO.getRotationalInertiaY())
|
|
@@ -269,6 +270,7 @@ public class VehicleService {
|
|
String centroidToGround = par.substring(par.indexOf("H_CG_SU")).split("\\s")[1];
|
|
String centroidToGround = par.substring(par.indexOf("H_CG_SU")).split("\\s")[1];
|
|
String wheelbase = par.substring(par.indexOf("LX_AXLE")).split("\\s")[1];
|
|
String wheelbase = par.substring(par.indexOf("LX_AXLE")).split("\\s")[1];
|
|
String sprungMass = par.substring(par.indexOf("M_SU")).split("\\s")[1];
|
|
String sprungMass = par.substring(par.indexOf("M_SU")).split("\\s")[1];
|
|
|
|
+ String vehicleLength = par.substring(par.indexOf("LEN_SM")).split("\\s")[1];
|
|
String vehicleWidth = par.substring(par.indexOf("WID_SM")).split("\\s")[1];
|
|
String vehicleWidth = par.substring(par.indexOf("WID_SM")).split("\\s")[1];
|
|
String rotationalInertiaX = par.substring(par.indexOf("IXX_SU")).split("\\s")[1];
|
|
String rotationalInertiaX = par.substring(par.indexOf("IXX_SU")).split("\\s")[1];
|
|
String rotationalInertiaY = par.substring(par.indexOf("IYY_SU")).split("\\s")[1];
|
|
String rotationalInertiaY = par.substring(par.indexOf("IYY_SU")).split("\\s")[1];
|
|
@@ -408,6 +410,7 @@ public class VehicleService {
|
|
.centroidToGround(centroidToGround)
|
|
.centroidToGround(centroidToGround)
|
|
.wheelbase(new BigDecimal(wheelbase))
|
|
.wheelbase(new BigDecimal(wheelbase))
|
|
.sprungMass(sprungMass)
|
|
.sprungMass(sprungMass)
|
|
|
|
+ .vehicleLength(vehicleLength)
|
|
.vehicleWidth(vehicleWidth)
|
|
.vehicleWidth(vehicleWidth)
|
|
.rotationalInertiaX(rotationalInertiaX)
|
|
.rotationalInertiaX(rotationalInertiaX)
|
|
.rotationalInertiaY(rotationalInertiaY)
|
|
.rotationalInertiaY(rotationalInertiaY)
|