Skip to content

Commit

Permalink
Cosmetic Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fforay committed Oct 8, 2023
1 parent dac8f23 commit a1c1209
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 26 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ _**Documentation**_ :
#### Usage
1. Create a Tello Object, indicating it's IP Address
2. Send commands and get replies
3. If you send TakeOff, a background Thread will run and send a Pulse to the Drone in order to keep the connection alive.
4. If you send Lan, the background Thread is closed
3. If you send **TakeOff**, a background Thread will run and send a Pulse to the Drone in order to keep the connection alive.
4. If you send **Land**, the background Thread is closed

# SimpleTello

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<RootNamespace>SimpleTello</RootNamespace>
<AssemblyName>SimpleTello</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<Name>SimpleTello</Name>
<Name>1-SimpleTello</Name>
<OutputName>SimpleTello</OutputName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
Expand Down
27 changes: 14 additions & 13 deletions SimpleTello/SimpleTello.prg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SimpleTello.prg
// Created by : fabri
// Creation Date : 7/18/2023 6:00:37 PM
// Created for :
// Created for :
// WorkStation : FABXPS


Expand All @@ -14,24 +14,24 @@ USING System.Text
USING System.Threading

BEGIN NAMESPACE SimpleTello

/// <summary>
/// The SimpleTello class.
/// Communicate with the Tello, without the TelloLibrary
/// </summary>
PUBLIC CLASS SimpleTello
PRIVATE _lastResponse := "" AS string

PRIVATE IsNewReponseAvailable := false AS Logic

PRIVATE PROPERTY LastResponse AS string
GET
IsNewReponseAvailable := false
RETURN _lastResponse

END GET
END PROPERTY

METHOD Start() AS void
LOCAL droneEndpoint AS IPEndPoint
LOCAL localEndPoint AS IPEndPoint
Expand Down Expand Up @@ -79,8 +79,8 @@ BEGIN NAMESPACE SimpleTello
client:Close()
Console.WriteLine("Press <return> to Close...")
Console.ReadLine()


PUBLIC METHOD RecvThread(param AS Object ) AS void
LOCAL client AS UdpClient
LOCAL remoteEndPoint AS IPEndPoint
Expand All @@ -97,15 +97,16 @@ BEGIN NAMESPACE SimpleTello
IsNewReponseAvailable := true
_lastResponse := response
ENDIF

CATCH e AS Exception
Console.WriteLine(e:Message)
EXIT
END TRY
END WHILE
END WHILE
// Ugly !! Direct access to the Console from the Thread, but.. ok, it works :)
Console.WriteLine("-->>...")


END CLASS

END NAMESPACE // SimpleTello
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<RootNamespace>TelloLibrary</RootNamespace>
<AssemblyName>TelloLibrary</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<Name>TelloLibrary</Name>
<Name>3-TelloLibrary</Name>
<OutputName>TelloLibrary</OutputName>
<StartupObject />
<NamedArgs>True</NamedArgs>
Expand Down
6 changes: 3 additions & 3 deletions TelloXSharp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33723.286
MinimumVisualStudioVersion = 10.0.40219.1
Project("{AA6C8D78-22FF-423A-9C7C-5F2393824E04}") = "TelloLibrary", "TelloLibrary\TelloLibrary.xsproj", "{D56B6653-8CFA-4A04-81FC-74BC58FE9120}"
Project("{AA6C8D78-22FF-423A-9C7C-5F2393824E04}") = "3-TelloLibrary", "TelloLibrary\3-TelloLibrary.xsproj", "{D56B6653-8CFA-4A04-81FC-74BC58FE9120}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3AD36147-69C0-4825-A0B6-5FE7A6FBDACE}"
ProjectSection(SolutionItems) = preProject
Expand All @@ -14,9 +14,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
EndProject
Project("{AA6C8D78-22FF-423A-9C7C-5F2393824E04}") = "TelloFake", "TelloFake\TelloFake.xsproj", "{844609C9-9406-40B7-A894-64482CDF15D8}"
EndProject
Project("{AA6C8D78-22FF-423A-9C7C-5F2393824E04}") = "TelloXSharp", "TelloXSharp\TelloXSharp.xsproj", "{32BAED1B-1F25-43E2-82E9-61E20F0A990C}"
Project("{AA6C8D78-22FF-423A-9C7C-5F2393824E04}") = "2-TelloXSharp", "TelloXSharp\2-TelloXSharp.xsproj", "{32BAED1B-1F25-43E2-82E9-61E20F0A990C}"
EndProject
Project("{AA6C8D78-22FF-423A-9C7C-5F2393824E04}") = "SimpleTello", "SimpleTello\SimpleTello.xsproj", "{DEC58555-CB5F-4436-9CFA-7BC19D367171}"
Project("{AA6C8D78-22FF-423A-9C7C-5F2393824E04}") = "1-SimpleTello", "SimpleTello\1-SimpleTello.xsproj", "{DEC58555-CB5F-4436-9CFA-7BC19D367171}"
EndProject
Project("{AA6C8D78-22FF-423A-9C7C-5F2393824E04}") = "TelloFakeGUI", "TelloFakeGUI\TelloFakeGUI.xsproj", "{40C3F4A9-BEBF-48E6-BF0D-7197BEC1734A}"
EndProject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<RootNamespace>TelloXSharp</RootNamespace>
<AssemblyName>TelloXSharp</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<Name>TelloXSharp</Name>
<Name>2-TelloXSharp</Name>
<OutputName>TelloXSharp</OutputName>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
Expand Down Expand Up @@ -138,15 +138,15 @@
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TelloLibrary\TelloLibrary.xsproj">
<Name>TelloLibrary</Name>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TelloLibrary\3-TelloLibrary.xsproj">
<Name>3-TelloLibrary</Name>
<Project>{d56b6653-8cfa-4a04-81fc-74bc58fe9120}</Project>
<Private>True</Private>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<PreBuildEvent />
<PostBuildEvent />
Expand Down

0 comments on commit a1c1209

Please sign in to comment.