资源简介

电动汽车建模,采用m语言编写的电动汽车模型

资源截图

代码片段和文件信息

% Electric vehicle model
% Created by John Hedengren john_hedengren@hotmail.com

% based on dc motor model
%   by Roger Aarenstrup roger.aarenstrup@mathworks.com
%
function xdot=electric_car(tx)

global u

% Vin is the input voltage to the motor (Volts)
% i is the motor current (Amps)
% dth_m is the rotor angular velocity sometimes called omega (radians/sec)
% th_m is the rotor angle theta (radians)
% dth_l is the wheel angular velocity (rad/sec)
% th_l is the wheel angle (radians)
% dth_v is the vehicle velocity (m/sec)
% th_v is the distance travelled (m)

% Input:   Vin: motor voltage
Vin = u;

% Motor parameters (DC motor)
Rm  = 0.1;             % Motor resistance (ohm)
Lm  = 0.01;             % motor inductance (Henrys)
Kb = 6.5e-4;           % Back EMF constant (Volt-sec/Rad)
Kt 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        2080  2007-09-26 18:29  electric_car.m
     文件        1632  2007-09-26 18:19  step.m
     文件        1321  2014-02-12 12:31  license.txt

评论

共有 条评论