Files

BOW_startup.m
%% Add folders to path addpath('system_object/bfgs','system_object/newGenerator','system_object/loader','MATLAB_scripts'); %% Load constants load('controller_constants/BOW/f2p.mat'); load('controller_constants/BOW/PID_v2.mat'); load('controller_constants/BOW/stateSpace.mat'); load('controller_constants/BOW/kalman.mat'); load('controller_constants/BOW/trajectory_5mm.mat'); %% Parameters %%% Particle radius Rp = 4e-3; %%% State feedback % Extended state-space model (with integral state) Fext = [F zeros(2,1); C 1]; Gext = [G;0]; Cext = [0 0 1]; % % Show current poles % eig(Fext) % Desired pole placement poles = [0.965 0.965 0.945]; Kext = acker(Fext,Gext,poles); % State feedback vector K = Kext(1:2); % Integrator constant K_i = Kext(3)*50;
Report a bug