diff options
author | Nao Pross <np@0hm.ch> | 2024-05-13 16:42:23 +0200 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2024-05-13 16:50:52 +0200 |
commit | 86f87bd7997105572c44f74714f9b03c2f7ea4fe (patch) | |
tree | 17056cdb4082bad75f472354734578b1755e07d5 /uav_uncertainty.m | |
parent | Add datasheets (diff) | |
download | uav-86f87bd7997105572c44f74714f9b03c2f7ea4fe.tar.gz uav-86f87bd7997105572c44f74714f9b03c2f7ea4fe.zip |
Prepare structure for endterm
Diffstat (limited to 'uav_uncertainty.m')
-rw-r--r-- | uav_uncertainty.m | 28 |
1 files changed, 28 insertions, 0 deletions
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: |