From 86f87bd7997105572c44f74714f9b03c2f7ea4fe Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Mon, 13 May 2024 16:42:23 +0200 Subject: Prepare structure for endterm --- uav_uncertainty.m | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 uav_uncertainty.m (limited to 'uav_uncertainty.m') diff --git a/uav_uncertainty.m b/uav_uncertainty.m new file mode 100644 index 0000000..e1ddf76 --- /dev/null +++ b/uav_uncertainty.m @@ -0,0 +1,28 @@ +% Generate transfer functions for loop shaping stability (uncertainty) +% requirements from parameters specified in uav_params.m +% +% Copyright (C) 2024, Naoki Sean Pross, ETH Zürich +% This work is distributed under a permissive license, see LICENSE.txt +% +% Arguments: +% PARAMS Struct of design parameters and constants generated by uav_params +% PLOT When set to 'true' it plots the inverse magnitude of the +% performance transfer function +% +% Return value: +% UNCERT Struct of uncertainty transfer functions + + +function [uncert] = uav_performance(params, plot) + +W_malpha = tf(1,1); +W_momega = tf(1,1); +W_mState = tf(1,1); + +uncert = struct(... + 'FlapAngle', W_malpha * eye(4), ... + 'Thrust', W_momega, ... + 'StateLinApprox', W_mState * eye(12)); + +end +% vim: ts=2 sw=2 et: -- cgit v1.2.1