Skip to content

Commit

Permalink
Mono fixs/tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed May 27, 2017
1 parent 9a5879c commit 454fb85
Show file tree
Hide file tree
Showing 33 changed files with 2,119 additions and 3,380 deletions.
13 changes: 6 additions & 7 deletions CurrentState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ public float DistRSSIRemain
public float servovoltage { get; set; }

[DisplayText("Voltage Flags")]
public MAVLink.MAV_POWER_STATUS voltageflag { get; set; }
public uint voltageflag {get;set;}

public ushort i2cerrors { get; set; }

Expand Down Expand Up @@ -1253,7 +1253,7 @@ public int KIndex

public float rpm2 { get; set; }

public MAVLink.MAV_PROTOCOL_CAPABILITY capabilities { get; set; }
public uint capabilities { get; set; }

public float speedup { get; set; }

Expand Down Expand Up @@ -1328,8 +1328,8 @@ public void ResetInternals()
distTraveled = 0;
timeInAir = 0;
version = new Version();
voltageflag = MAVLink.MAV_POWER_STATUS.USB_CONNECTED;
capabilities = MAVLink.MAV_PROTOCOL_CAPABILITY.MISSION_FLOAT;
voltageflag = (uint)MAVLink.MAV_POWER_STATUS.USB_CONNECTED;
capabilities = (uint)MAVLink.MAV_PROTOCOL_CAPABILITY.MISSION_FLOAT;
}
}

Expand Down Expand Up @@ -1545,7 +1545,7 @@ public void UpdateCurrentSettings(System.Windows.Forms.BindingSource bs, bool up

try
{
capabilities = (MAVLink.MAV_PROTOCOL_CAPABILITY)version.capabilities;
capabilities = (uint)(MAVLink.MAV_PROTOCOL_CAPABILITY)version.capabilities;
}
catch
{
Expand Down Expand Up @@ -1759,11 +1759,10 @@ public void UpdateCurrentSettings(System.Windows.Forms.BindingSource bs, bool up

try
{
voltageflag = (MAVLink.MAV_POWER_STATUS) power.flags;
voltageflag = (uint)((MAVLink.MAV_POWER_STATUS) power.flags);
}
catch
{

}
}

Expand Down
5 changes: 3 additions & 2 deletions ExtLibs/BSE.Windows.Forms/BSE.Windows.Forms.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand Down Expand Up @@ -36,9 +36,10 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
<RestorePackages>true</RestorePackages>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup>
<SignAssembly>false</SignAssembly>
Expand Down
Loading

0 comments on commit 454fb85

Please sign in to comment.