 ; clc

import VehicleDynamicsLateral.*

%% Model and parameters
% Simulation
%

% Choosing tire
TireModel   = TirePacejka();
% Choosing vehicle
System      = VehicleSimpleNonlinear4DOF();
% Defining vehicle parameters
System.mF0  = 700;
System.mR0  = 600;
System.lT   = 3.5;
System.nF   = 1;
System.nR   = 1;
System.wT   = 2;
System.muy  = 1;
System.deltaf           = 10*pi/180;
System.FXFRONTLEFT      = 0;
System.FXFRONTRIGHT     = 0;
System.FXREARLEFT       = @VelControl4DOF;
System.FXREARRIGHT      = @Vel