没有合适的资源?快使用搜索试试~ 我知道了~
首页3D道路——PerScan与Carsim联合仿真步骤.pdf
主要是利用Matlab/Simulink、Carsim、Prescan等仿真软件,其中用Matlab/Simulink做控制算法的开发,用Carsim仿真软件提供汽车动力学模型、轮胎模型和制动器模型,利用Prescan软件建立测试场景与传感器模型,其中PreScan 软件MATLAB/Simulink 软件可以相互调用,具体来说就是 PreScan 中的各种传感器仿真数据传递到 Simulink 中
资源详情
资源评论
资源推荐

一、PreScanSetup
二、CarSimSetup
a)Vehicleselection
b)Vehicleconfiguration
c)CreationofaPreScanManeuver行为(工况设置)
d)MotionSensors
e)Inputs/Outputsconfiguration
f)MATLAB/Simulinkconfiguration
g)Sendconfiguration
三、SimulinkSetup
步骤1:设置CarSimsolver(求解器)路径
步骤2:Setthesimfile
步骤3:连接CarSimS-Function模块
步骤4:完成CompilationSheet
所有PreScanactor均可使用CarSim车辆动力学运行。在此演示中,以
PreScan演员AudiA8为例
注意3:在CarSim中,建议选择与PreScan中选择的车辆相当的车辆。在此演示中,选
择了与奥迪A8相当的F级车辆类型。
注意4:PreScanActor的初始位置必须是:在平坦表面(侧倾角roll和俯仰角pitch=
0)上并且在高度0处(起始道路Z位置=0)。
注意5:CarSim车辆的初始位置必须为:x=0,y=0,z=空载半径;roll=0,pitch=
0,横摆yaw=0。
如何创建PreScanCarSim车辆动力学S函数协同仿真?
一、PreScanSetup
1、In[Audi_A8_1][ObjectProperties][Animation]Wheeldisplacement
isenabled启用车轮位移.

2、IntheExperiment,selectTrajectory_1intheExperimentComponents-
>Actors->Audi_A8_1->Trajectories.然后InthePropertyEditor属性编辑器,
aStepfrequencyof100(Hz)issetinordertohaveasmoothsteeringbythe
PathFollowerwithpreview将步进频率设置为100(Hz),以使PathFollower with
preview 带有预览的路径跟随器获得平稳的转向.
3、PreScan中的Simulink“目标更新率Targetupdaterate”必须与CarSim动力学模型的更
新频率相同。这是在Experiment>SimulationScheduler仿真调度程序中完成的。
Dyn&CtrlWorld:1000Hz(ifCarSimmodelrunsat1000Hz)
Transferratioof50(resultinginSimulationCore@20Hz)
VisualWorld:10Hz
4、In[Audi_A8_1][ObjectProperties][DriverModel]PathFollower(withpreview带预
览)isselected.单击Clickonthe'Customize自定义'按钮andsetthe'Previewtime'to0.8and
the'Frequencyreductionfactor频率降低系数'to4.Thisinordertokeepthevehicleonthe

referencetrajectory这是为了使车辆保持在参考轨迹上andreducethe'PathFollowerwith
Preview'calculationtime减少计算时间.
5、In[Audi_A8_1][ObjectProperties][Dynamics]UserSpecifiedDynamicsofthetype
CarSimContactisassigned指定.选择CarSimContact时,请记住工具提示中显示的方法,
稍后将在配置CarSim时使用它们。

6、接上Pressthe'Customize'button.EntertheCarSimvehiclevalues.Thesevalueswill
be used by the PathFollower with preview. Please estimate a reasonable tyre cornering
stiffness(轮胎转弯刚度)frontandrear(left&rightmerged(请估算前后轮胎合理的转弯刚
度(左右合并))。在此演示中,估计的转弯刚度值是:
Fronttyrescorneringstiffness:170000[N/rad]
Reartyrescorneringstiffness:140000[N/rad]

7、重要提示:在CarSim中,车辆(仅簧载质量)的位置/旋转的应用点位于地面高度
的前轴(axis轴)中间。因此,必须将PreScanActor的重心位置放置在前轴的中部,也应放
置在地面高度上(请参阅以下说明)。对于奥迪A8,COG位置为:x=2.947m;y=0m;
z=0m(见下文);
二、CarSimSetup
剩余20页未读,继续阅读

















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0