Skip to content

Commit

Permalink
opengltest2
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Sep 6, 2014
1 parent b9a4cdf commit 198e7ba
Show file tree
Hide file tree
Showing 5 changed files with 806 additions and 1 deletion.
7 changes: 7 additions & 0 deletions GCSViews/FlightData.cs
Expand Up @@ -856,6 +856,13 @@ private void mainloop()
OpenGLtest.instance.LocationCenter = new PointLatLngAlt(MainV2.comPort.MAV.cs.lat, MainV2.comPort.MAV.cs.lng, MainV2.comPort.MAV.cs.alt, "here");
}

// update opengltest2
if (OpenGLtest2.instance != null)
{
OpenGLtest2.instance.rpy = new OpenTK.Vector3(MainV2.comPort.MAV.cs.roll, MainV2.comPort.MAV.cs.pitch, MainV2.comPort.MAV.cs.yaw);
OpenGLtest2.instance.LocationCenter = new PointLatLngAlt(MainV2.comPort.MAV.cs.lat, MainV2.comPort.MAV.cs.lng, MainV2.comPort.MAV.cs.alt, "here");
}

// update vario info
MissionPlanner.Utilities.Vario.SetValue(MainV2.comPort.MAV.cs.climbrate);

Expand Down
6 changes: 6 additions & 0 deletions MissionPlanner.csproj
Expand Up @@ -502,6 +502,9 @@
<Compile Include="Log\MatLab.cs" />
<Compile Include="Magfitrotation.cs" />
<Compile Include="Models\BattMonitor.cs" />
<Compile Include="OpenGLtest2.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Plugin\Plugin.cs" />
<Compile Include="Plugin\PluginLoader.cs" />
<Compile Include="Plugin\PluginUI.cs">
Expand Down Expand Up @@ -825,6 +828,9 @@
<EmbeddedResource Include="MovingBase.zh-TW.resx">
<DependentUpon>MovingBase.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OpenGLtest2.resx">
<DependentUpon>OpenGLtest2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Radio\3DRradio.it-IT.resx">
<DependentUpon>3DRradio.cs</DependentUpon>
</EmbeddedResource>
Expand Down

0 comments on commit 198e7ba

Please sign in to comment.