Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
isae-group-drone
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RIBEIRO-LUSTOSA Leandro
isae-group-drone
Commits
0ea7c0f9
Commit
0ea7c0f9
authored
2 years ago
by
RIBEIRO-LUSTOSA Leandro
Browse files
Options
Downloads
Patches
Plain Diff
fixed UDP conventions for working with both real and sim Tellos
parent
8c3a598f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tello.slx
+0
-0
0 additions, 0 deletions
tello.slx
tello_land.m
+15
-0
15 additions, 0 deletions
tello_land.m
tello_takeoff.m
+13
-7
13 additions, 7 deletions
tello_takeoff.m
with
28 additions
and
7 deletions
tello.slx
+
0
−
0
View file @
0ea7c0f9
No preview for this file type
This diff is collapsed.
Click to expand it.
tello_land.m
0 → 100644
+
15
−
0
View file @
0ea7c0f9
%% final script for tello landing
% open udp socket for communication with Tello drone (sim AND real)
u_lb
=
udp
(
'127.0.0.1'
,
8889
);
u_dr
=
udp
(
'192.168.10.1'
,
8889
);
fopen
(
u_lb
);
fopen
(
u_dr
);
% send command to get tello ready to receive commands
fwrite
(
u_lb
,
'command'
);
fwrite
(
u_dr
,
'command'
);
% send command to takeoff
fwrite
(
u_lb
,
'land'
);
fwrite
(
u_dr
,
'land'
);
% close socket so that simulink or other software can use it
clear
u_lb
;
clear
u_dr
;
This diff is collapsed.
Click to expand it.
tello_takeoff.m
+
13
−
7
View file @
0ea7c0f9
%% initialization script for tello takeoff
%% initialization script for tello takeoff
% open udp socket for communication with Tello drone (sim or real)
% open udp socket for communication with Tello drone (sim AND real)
u
=
udp
(
'127.0.0.1'
,
8889
);
u_lb
=
udp
(
'127.0.0.1'
,
8889
);
fopen
(
u
);
u_dr
=
udp
(
'192.168.10.1'
,
8889
);
fopen
(
u_lb
);
fopen
(
u_dr
);
% send command to get tello ready to receive commands
% send command to get tello ready to receive commands
fprintf
(
u
,
'command\n'
);
fwrite
(
u_lb
,
'command'
);
fwrite
(
u_dr
,
'command'
);
% send command to takeoff
% send command to takeoff
fprintf
(
u
,
'takeoff\n'
);
fwrite
(
u_lb
,
'takeoff'
);
fwrite
(
u_dr
,
'takeoff'
);
% send command to request video stream
% send command to request video stream
fprintf
(
u
,
'streamon\n'
);
fwrite
(
u_lb
,
'streamon'
);
fwrite
(
u_dr
,
'streamon'
);
% close socket so that simulink or other software can use it
% close socket so that simulink or other software can use it
clear
u
;
clear
u_lb
;
clear
u_dr
;
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment