basic implementation of client/server for AERPAW, whole lot of mess included
This commit is contained in:
20
aerpaw/@uav/onYourMarks.m
Normal file
20
aerpaw/@uav/onYourMarks.m
Normal file
@@ -0,0 +1,20 @@
|
||||
function obj = onYourMarks(obj)
|
||||
arguments (Input)
|
||||
obj (1, 1) {mustBeA(obj, "uav")};
|
||||
end
|
||||
|
||||
arguments (Output)
|
||||
obj (1, 1) {mustBeA(obj, "uav")};
|
||||
end
|
||||
|
||||
% Receive initial position data
|
||||
initialPosition = read(obj.udp, 3, "double");
|
||||
|
||||
% Acknowledge message receipt
|
||||
|
||||
% teleport to desired position
|
||||
obj.pos = initialPosition;
|
||||
|
||||
keyboard
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user