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

View File

@@ -0,0 +1,24 @@
function u = sendTarget(~, u, pos)
arguments (Input)
~
u (1, 1) {mustBeA(u, 'uav')};
pos (1, 3) double;
end
arguments (Output)
u (1, 1) {mustBeA(u, 'uav')};
end
% Branch here depending on environment
if coder.target("MATLAB")
% Simulation - update target position
u.commandPos = pos;
elseif coder.target("C++")
% Codegen - TX starting position to UAV
coder.cinclude("udp_comm.h");
coder.ceval("sendTarget", coder.rref(pos));
end
end