forked from ArduPilot/MissionPlanner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
822 changed files
with
816,847 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,235 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform> | ||
<ProductVersion>8.0.30703</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{B8943726-04B0-4477-BFDA-E156A0CD98A4}</ProjectGuid> | ||
<OutputType>WinExe</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>_3DRRadio</RootNamespace> | ||
<AssemblyName>3DRRadio</AssemblyName> | ||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> | ||
<TargetFrameworkProfile> | ||
</TargetFrameworkProfile> | ||
<FileAlignment>512</FileAlignment> | ||
<IsWebBootstrapper>false</IsWebBootstrapper> | ||
<PublishUrl>publish\</PublishUrl> | ||
<Install>true</Install> | ||
<InstallFrom>Disk</InstallFrom> | ||
<UpdateEnabled>false</UpdateEnabled> | ||
<UpdateMode>Foreground</UpdateMode> | ||
<UpdateInterval>7</UpdateInterval> | ||
<UpdateIntervalUnits>Days</UpdateIntervalUnits> | ||
<UpdatePeriodically>false</UpdatePeriodically> | ||
<UpdateRequired>false</UpdateRequired> | ||
<MapFileExtensions>true</MapFileExtensions> | ||
<ApplicationRevision>0</ApplicationRevision> | ||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> | ||
<UseApplicationTrust>false</UseApplicationTrust> | ||
<BootstrapperEnabled>true</BootstrapperEnabled> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> | ||
<PlatformTarget>x86</PlatformTarget> | ||
<DebugSymbols>false</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>TRACE;DEBUG</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> | ||
<PlatformTarget>x86</PlatformTarget> | ||
<DebugType>none</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<StartupObject /> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<ApplicationIcon>3dr.ico</ApplicationIcon> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="log4net"> | ||
<HintPath>..\Lib\log4net.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Management" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Deployment" /> | ||
<Reference Include="System.Drawing" /> | ||
<Reference Include="System.Windows.Forms" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="ZedGraph"> | ||
<HintPath>..\Lib\ZedGraph.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="..\Arduino\ArduinoComms.cs"> | ||
<Link>Linked\ArduinoComms.cs</Link> | ||
</Compile> | ||
<Compile Include="..\Arduino\ArduinoSTK.cs"> | ||
<Link>Linked\ArduinoSTK.cs</Link> | ||
<SubType>Component</SubType> | ||
</Compile> | ||
<Compile Include="..\Attributes\DisplayTextAttribute.cs"> | ||
<Link>Linked\DisplayTextAttribute.cs</Link> | ||
</Compile> | ||
<Compile Include="..\Attributes\PrivateAttribute.cs"> | ||
<Link>Linked\PrivateAttribute.cs</Link> | ||
</Compile> | ||
<Compile Include="..\Comms\CommsSerialPort.cs"> | ||
<Link>Linked\CommsSerialPort.cs</Link> | ||
<SubType>Component</SubType> | ||
</Compile> | ||
<Compile Include="..\Comms\ICommsSerial.cs"> | ||
<Link>Linked\ICommsSerial.cs</Link> | ||
</Compile> | ||
<Compile Include="..\Controls\BackstageView\BackstageView.cs"> | ||
<Link>Linked\BackstageView.cs</Link> | ||
<SubType>UserControl</SubType> | ||
</Compile> | ||
<Compile Include="..\Controls\BackstageView\BackstageView.designer.cs"> | ||
<Link>Linked\BackstageView.designer.cs</Link> | ||
<DependentUpon>BackstageView.cs</DependentUpon> | ||
</Compile> | ||
<Compile Include="..\Controls\BackstageView\BackstageViewButton.cs"> | ||
<Link>Linked\BackstageViewButton.cs</Link> | ||
<SubType>Component</SubType> | ||
</Compile> | ||
<Compile Include="..\Controls\BackstageView\BackStageViewContentPanel.cs"> | ||
<Link>Linked\BackStageViewContentPanel.cs</Link> | ||
<SubType>UserControl</SubType> | ||
</Compile> | ||
<Compile Include="..\Controls\BackstageView\BackStageViewMenuPanel.cs"> | ||
<Link>Linked\BackStageViewMenuPanel.cs</Link> | ||
<SubType>Component</SubType> | ||
</Compile> | ||
<Compile Include="..\Controls\CustomMessageBox.cs"> | ||
<Link>Linked\CustomMessageBox.cs</Link> | ||
</Compile> | ||
<Compile Include="..\Controls\MyButton.cs"> | ||
<Link>Linked\MyButton.cs</Link> | ||
<SubType>Component</SubType> | ||
</Compile> | ||
<Compile Include="..\Radio\3DRradio.cs"> | ||
<Link>Linked\3DRradio.cs</Link> | ||
<SubType>UserControl</SubType> | ||
</Compile> | ||
<Compile Include="..\Radio\3DRradio.designer.cs"> | ||
<Link>Linked\3DRradio.designer.cs</Link> | ||
<DependentUpon>3DRradio.cs</DependentUpon> | ||
</Compile> | ||
<Compile Include="..\Radio\IHex.cs"> | ||
<Link>Linked\IHex.cs</Link> | ||
</Compile> | ||
<Compile Include="..\Radio\Uploader.cs"> | ||
<Link>Linked\Uploader.cs</Link> | ||
</Compile> | ||
<Compile Include="Common.cs" /> | ||
<Compile Include="Config.cs"> | ||
<SubType>Form</SubType> | ||
</Compile> | ||
<Compile Include="Config.Designer.cs"> | ||
<DependentUpon>Config.cs</DependentUpon> | ||
</Compile> | ||
<Compile Include="MainV2.cs" /> | ||
<Compile Include="Program.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<Compile Include="Rssi.cs"> | ||
<SubType>UserControl</SubType> | ||
</Compile> | ||
<Compile Include="Rssi.Designer.cs"> | ||
<DependentUpon>Rssi.cs</DependentUpon> | ||
</Compile> | ||
<Compile Include="Terminal.cs"> | ||
<SubType>UserControl</SubType> | ||
</Compile> | ||
<Compile Include="Terminal.Designer.cs"> | ||
<DependentUpon>Terminal.cs</DependentUpon> | ||
</Compile> | ||
<Compile Include="ThemeManager.cs" /> | ||
<EmbeddedResource Include="..\Controls\BackstageView\BackstageView.resx"> | ||
<Link>Linked\BackstageView.resx</Link> | ||
<DependentUpon>BackstageView.cs</DependentUpon> | ||
</EmbeddedResource> | ||
<EmbeddedResource Include="..\Radio\3DRradio.resx"> | ||
<Link>Linked\3DRradio.resx</Link> | ||
<DependentUpon>3DRradio.cs</DependentUpon> | ||
</EmbeddedResource> | ||
<EmbeddedResource Include="..\Radio\3DRradio.zh-Hans.resx"> | ||
<Link>Linked\3DRradio.zh-Hans.resx</Link> | ||
<DependentUpon>3DRradio.cs</DependentUpon> | ||
</EmbeddedResource> | ||
<EmbeddedResource Include="Config.resx"> | ||
<DependentUpon>Config.cs</DependentUpon> | ||
</EmbeddedResource> | ||
<EmbeddedResource Include="Properties\Resources.resx"> | ||
<Generator>ResXFileCodeGenerator</Generator> | ||
<LastGenOutput>Resources.Designer.cs</LastGenOutput> | ||
<SubType>Designer</SubType> | ||
</EmbeddedResource> | ||
<Compile Include="Properties\Resources.Designer.cs"> | ||
<AutoGen>True</AutoGen> | ||
<DependentUpon>Resources.resx</DependentUpon> | ||
<DesignTime>True</DesignTime> | ||
</Compile> | ||
<EmbeddedResource Include="Rssi.resx"> | ||
<DependentUpon>Rssi.cs</DependentUpon> | ||
</EmbeddedResource> | ||
<EmbeddedResource Include="Terminal.resx"> | ||
<DependentUpon>Terminal.cs</DependentUpon> | ||
</EmbeddedResource> | ||
<None Include="app.config" /> | ||
<None Include="Properties\Settings.settings"> | ||
<Generator>SettingsSingleFileGenerator</Generator> | ||
<LastGenOutput>Settings.Designer.cs</LastGenOutput> | ||
</None> | ||
<Compile Include="Properties\Settings.Designer.cs"> | ||
<AutoGen>True</AutoGen> | ||
<DependentUpon>Settings.settings</DependentUpon> | ||
<DesignTimeSharedInput>True</DesignTimeSharedInput> | ||
</Compile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5"> | ||
<Visible>False</Visible> | ||
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName> | ||
<Install>false</Install> | ||
</BootstrapperPackage> | ||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> | ||
<Visible>False</Visible> | ||
<ProductName>.NET Framework 3.5 SP1</ProductName> | ||
<Install>true</Install> | ||
</BootstrapperPackage> | ||
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> | ||
<Visible>False</Visible> | ||
<ProductName>Windows Installer 3.1</ProductName> | ||
<Install>true</Install> | ||
</BootstrapperPackage> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Include="3dr.ico" /> | ||
<Content Include="ChangeLog.txt"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
<None Include="Resources\3dr3.png" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
1.0a - fix 868 freq range | ||
1.0 - added rf freeq for 868 | ||
0.9 - added rfd900a | ||
0.8 - fix settings saving. | ||
0.7 - fix typos - log rssi screen to log as well | ||
0.6 - add terminal logging to file, fix remote radio config | ||
0.5 - add terminal | ||
0.4 - adjust erase timeout - to prevent lost bootloader sync error. | ||
0.3 - add RFD900 support | ||
0.2 - change packet size to 32 bytes | ||
0.1 - Initial Release - Based off code by Mike Smith |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Security.Cryptography.X509Certificates; | ||
using System.IO; | ||
using System.Net; | ||
using System.Net.Sockets; | ||
using System.Xml; // config file | ||
using System.Runtime.InteropServices; // dll imports | ||
using System.Drawing.Drawing2D; | ||
using log4net; | ||
using System.Reflection; | ||
using System.Windows.Forms; | ||
|
||
namespace ArdupilotMega | ||
{ | ||
public class Common | ||
{ | ||
private static readonly ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
|
||
public static bool getFilefromNet(string url, string saveto) | ||
{ | ||
try | ||
{ | ||
// this is for mono to a ssl server | ||
//ServicePointManager.CertificatePolicy = new NoCheckCertificatePolicy(); | ||
|
||
ServicePointManager.ServerCertificateValidationCallback = | ||
new System.Net.Security.RemoteCertificateValidationCallback((sender, certificate, chain, policyErrors) => { return true; }); | ||
|
||
// Create a request using a URL that can receive a post. | ||
WebRequest request = WebRequest.Create(url); | ||
request.Timeout = 10000; | ||
// Set the Method property of the request to POST. | ||
request.Method = "GET"; | ||
// Get the response. | ||
WebResponse response = request.GetResponse(); | ||
// Display the status. | ||
log.Info(((HttpWebResponse)response).StatusDescription); | ||
if (((HttpWebResponse)response).StatusCode != HttpStatusCode.OK) | ||
return false; | ||
// Get the stream containing content returned by the server. | ||
Stream dataStream = response.GetResponseStream(); | ||
|
||
long bytes = response.ContentLength; | ||
long contlen = bytes; | ||
|
||
byte[] buf1 = new byte[1024]; | ||
|
||
FileStream fs = new FileStream(saveto + ".new", FileMode.Create); | ||
|
||
DateTime dt = DateTime.Now; | ||
|
||
while (dataStream.CanRead && bytes > 0) | ||
{ | ||
Application.DoEvents(); | ||
log.Debug(saveto + " " + bytes); | ||
int len = dataStream.Read(buf1, 0, buf1.Length); | ||
bytes -= len; | ||
fs.Write(buf1, 0, len); | ||
} | ||
|
||
fs.Close(); | ||
dataStream.Close(); | ||
response.Close(); | ||
|
||
File.Delete(saveto); | ||
File.Move(saveto + ".new", saveto); | ||
|
||
return true; | ||
} | ||
catch (Exception ex) { log.Info("getFilefromNet(): " + ex.ToString()); return false; } | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.