Skip to content

Commit

Permalink
MAVLinkInterface: try rts/cts on no data
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Sep 24, 2017
1 parent 39a4b2b commit c94d3ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Mavlink/MAVLinkInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,12 @@ 4. Try a diffrent usb port\n\n" +

count++;

// if we get no data, try enableing rts/cts
if (buffer.Length == 0 && buffer1.Length == 0 && BaseStream is SerialPort)
{
BaseStream.RtsEnable = !BaseStream.RtsEnable;
}

// 2 hbs that match
if (buffer.Length > 5 && buffer1.Length > 5 && buffer.sysid == buffer1.sysid && buffer.compid == buffer1.compid)
{
Expand Down
2 changes: 1 addition & 1 deletion MissionPlanner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<OutputType>Exe</OutputType>
<StartupObject></StartupObject>
<Authors>Michael Oborne</Authors>
<Version>1.3.49.9</Version>
<Version>1.3.49.12</Version>
<Company>Mission Planner</Company>
<Product>Mission Planner</Product>
<Description />
Expand Down
2 changes: 1 addition & 1 deletion appxmanifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:uap2="http://schemas.microsoft.com/appx/manifest/uap/windows10/2" xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10">
<Identity Name="36541MichaelOborne.MissionPlanner"
Version="0.0.46.0"
Version="0.0.47.0"
Publisher="CN=3B1842DF-8664-4A02-B840-61F61DA8A94E" />
<Properties>
<DisplayName>Mission Planner</DisplayName>
Expand Down

0 comments on commit c94d3ba

Please sign in to comment.