basic implementation of client/server for AERPAW, whole lot of mess included

This commit is contained in:
2026-01-28 22:29:17 -08:00
parent 20417f240c
commit 8abd009aed
101 changed files with 1129 additions and 36 deletions

17
aerpaw/@scenario/setup.m Normal file
View File

@@ -0,0 +1,17 @@
function obj = setup(obj)
arguments (Input)
obj (1, 1) {mustBeA(obj, 'scenario')};
end
arguments (Output)
obj (1, 1) {mustBeA(obj, 'scenario')};
end
% Command drones to their starting positions
for ii = 1:size(obj.uavs, 1)
obj.uavs{ii} = obj.sendTarget(obj.uavs{ii}, obj.inits.pos(ii, 1:3));
end
% Update opMode
obj.opMode = OPMODE.SET;
end