Path: blob/master/Tools/simulink/arducopter/sid_controller_validation_cfg.m
9688 views
% Configuration script for the control model validation1% Determines simulated and measured signals that are compared to validate2% the control model3%4% Fabian Bredemeier - IAV GmbH5% License: GPL v367switch simMode8case 1 % Rate Controller9val_out_sig_names = {'RATE.ROut', 'RATE.POut', 'RATE.YOut'}; % Names of signals in the Ardupilot dataflash logs10val_out_sig_sim = {'rollRateCtrlOut', 'pitchRateCtrlOut', 'yawRateCtrlOut'}; % Names of the simulated signals11val_out_sig_meas = {'rollRateTotMeas', 'pitchRateTotMeas', 'yawRateTotMeas'}; % Names of the measured signals12val_in_sig_names = {'RATE.RDes', 'RATE.PDes', 'RATE.YDes'};13val_in_sig = {'<rollRateTar>', '<pitchRateTar>', '<yawRateTar>'};14case 2 % Attitude controller15val_out_sig_names = {'RATE.RDes','RATE.PDes', 'RATE.YDes'};16val_out_sig_sim = {'rollRateTar', 'pitchRateTar', 'yawRateTar'};17val_out_sig_meas = {'rollRateTarMeas','pitchRateTarMeas', 'yawRateTarMeas'};18val_in_sig_names = {'RCIN.C1', 'RCIN.C2', 'RCIN.C4'};19val_in_sig = {'rcinRoll', 'rcinPitch', 'rcinYaw'};20case 3 % z position controller21val_out_sig_names = {'CTUN.ThI', 'PSCD.TAD', 'PSCD.TVD'};22val_out_sig_sim = {'thrOut', 'zAccTar', 'zVelTar'};23val_out_sig_meas = {'thrInMeas', 'zAccTarMeas', 'zVelTarMeas'};24val_in_sig_names = {'PSCD.TAD', 'PSCD.TVD', 'PSCD.TPD'};25val_in_sig = {'zAccTar', 'zVelTar', 'zPosTar'};26end2728