summaryrefslogtreecommitdiffstats
path: root/uav_params.m
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-04-04 20:12:32 +0200
committerNao Pross <np@0hm.ch>2024-04-04 20:12:32 +0200
commit734ee9e826b490137e3d8af627019098cafa1403 (patch)
tree46666fe7c47eb8cc9240028c30c363d5cbdbe540 /uav_params.m
parentUpdate a lot of small things and add SIMULINK model (diff)
downloaduav-734ee9e826b490137e3d8af627019098cafa1403.tar.gz
uav-734ee9e826b490137e3d8af627019098cafa1403.zip
Move uncertain model design into uav_model and add more design parameter
Diffstat (limited to '')
-rw-r--r--uav_params.m17
1 files changed, 11 insertions, 6 deletions
diff --git a/uav_params.m b/uav_params.m
index 3ceda9e..0e82148 100644
--- a/uav_params.m
+++ b/uav_params.m
@@ -1,5 +1,5 @@
% Copyright (C) 2024, Naoki Sean Pross, ETH Zürich
-%
+%
% Retrieve / compute parameters for UAV.
function [params] = uav_params()
@@ -34,16 +34,20 @@ params.mechanical = struct(...
);
% ------------------------------------------------------------------------
-% Actuator limits
+% Actuator limits and measurements
% Cheap servos usually give a "speed" in seconds / 60 degrees without load
servo_speed = 0.19; % seconds per 60 deg
servo_angular_velocity = (pi / 3) / servo_speed;
params.actuators = struct(...
- 'TurbineMaxSpeed', 620.7, ... % In Hz
- 'ServoAbsMaxAngleDeg', 25, ... % in Degrees
- 'ServoNominalAngularVelocity', servo_angular_velocity, ...
+ 'TurbineMaxSpeed', 620.7, ... % in rad / s
+ 'ServoAbsMaxAngle', 25 * pi / 180, ... % in radians
+ 'ServoNominalAngularVelocity', servo_angular_velocity ...
+);
+
+params.measurements = struct(...
+ 'SensorFusionBandwidth', 1e3, ...
'MeasurementDelay', 8e-3 ... % delay caused by sensor fusion algorithm
);
@@ -87,7 +91,8 @@ params.linearization = struct(...
% Performance requirements
params.performance = struct(...
- 'MaxHorizontalSpeed', 1, ...
+ 'MaxHorizontalSpeed', 1e-2, ... % in m / s
+ 'MaxVerticalSpeed', 5e-2 ... % in m / s
);
end