📄 chap9_6i.m
字号:
%Three Loop of Flight Simulator Servo System with two-mass of Direct Current Motor
clear all;
close all;
%(1)Current loop
L=0.001; %L<<1,Inductance of motor armature
R=1.0; %Resistence of motor armature
ki=0.001; %Current feedback coefficient
%(2)Velocity loop
kd=6; %Velocity loop amplifier coefficient
kv=2; %Velocity loop feedback coefficient
Jm=0.005; %Equivalent moment of inertia of motor
bm=0.010; %Viscosity damp coefficient of motor
km=10; %Motor moment coefficient
Ce=0.001; %Voltage feedback coefficient
Jl=0.15; %Equivalent moment of inertia of frame
bl=8.0; %Viscosity damp coefficient of frame
kl=5.0; %Motor moment coefficient between frame and motor
%Friction model: Coulomb&Viscous Friction
Fc=10;bc=3; %Practical friction
%(3)Position loop: PID controller
ku=11; %Voltage amplifier coefficient of PWM
kpp=8;
kii=1.0;
kdd=5;
%Input Signal Initialize
F=0.50;
A=0.50;
ts=0.001; %Sampling time
k=5000;
time=[0:ts:k*ts]'; %Simulation time
rin=A*sin(2*pi*F*time);
drin=2*pi*F*A*cos(2*pi*F*time);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -