Page 1 of 1

Exception and problems on simulation

PostPosted: Thu Mar 19, 2015 8:21 pm
by julioall
Hi everyone,

I'm new to the gluon pilot but have some experience on autopilots. At the moment I'm trying to create a flight plan for a photogrammetry mission. Bad thing is that whenever I try to use the helper option to create the polygon and then build the route. I've tried to look in the forum for similar problems but with no success. I get the following:

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.RemoveAt(Int32 index)
at GluonCS.LiveUavLayer.GMapController.<model_NavigationLocalListChanged>b__1()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34014 built by: FX45W81RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
GluonCS
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Gluon%20Control%20Station%200.10%20BETA5/GluonCS.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34239 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
GMap.NET.Core
Assembly Version: 1.7.0.0
Win32 Version: 1.7
CodeBase: file:///C:/Program%20Files%20(x86)/Gluon%20Control%20Station%200.10%20BETA5/GMap.NET.Core.DLL
----------------------------------------
System.Speech
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Speech/v4.0_4.0.0.0__31bf3856ad364e35/System.Speech.dll
----------------------------------------
GMap.NET.WindowsForms
Assembly Version: 1.7.0.0
Win32 Version: 1.7
CodeBase: file:///C:/Program%20Files%20(x86)/Gluon%20Control%20Station%200.10%20BETA5/GMap.NET.WindowsForms.DLL
----------------------------------------
Communication
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Gluon%20Control%20Station%200.10%20BETA5/Communication.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
BSE.Windows.Forms
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Gluon%20Control%20Station%200.10%20BETA5/BSE.Windows.Forms.DLL
----------------------------------------
System.Data.SQLite
Assembly Version: 1.0.84.0
Win32 Version: 1.0.84.0
CodeBase: file:///C:/Program%20Files%20(x86)/Gluon%20Control%20Station%200.10%20BETA5/System.Data.SQLite.DLL
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
ArtificialHorizon
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Gluon%20Control%20Station%200.10%20BETA5/ArtificialHorizon.DLL
----------------------------------------
ZedGraph
Assembly Version: 5.1.2.878
Win32 Version: 5.1.2.878
CodeBase: file:///C:/Program%20Files%20(x86)/Gluon%20Control%20Station%200.10%20BETA5/ZedGraph.DLL
----------------------------------------
GluonCS.resources
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Gluon%20Control%20Station%200.10%20BETA5/en/GluonCS.resources.DLL
----------------------------------------
System.Design
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
Common
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Gluon%20Control%20Station%200.10%20BETA5/Common.DLL
----------------------------------------
SmartThreadPool
Assembly Version: 2.2.1.0
Win32 Version: 2.2.1.0
CodeBase: file:///C:/Program%20Files%20(x86)/Gluon%20Control%20Station%200.10%20BETA5/SmartThreadPool.DLL
----------------------------------------
System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34212 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 12.0.20806.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.resources
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.resources/v4.0_4.0.0.0_es_b77a5c561934e089/System.resources.dll
----------------------------------------
Configuration
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Gluon%20Control%20Station%200.10%20BETA5/Configuration.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

Also, I tried just to ignore this exception but when the simulation is performing the mission it gets stuck in an endless loop in a Circle_To command. It just keep flying in circles around the waypoint instead of going to the next one. I have noticed that it doesn't flies in a straight line while using the From_To command. Any thoughts?

Cheers!

Re: Exception and problems on simulation

PostPosted: Thu Mar 19, 2015 8:49 pm
by Tom
Hello Julio,

In the latest software versions the simulated flight behavior is not ideal.

Which version of the software are you using?

Tom

Re: Exception and problems on simulation

PostPosted: Thu Mar 19, 2015 9:03 pm
by julioall
Here is a screenshot of what happens when applying the command Circle_To:

http://i.imgur.com/z35x4Me.png

Re: Exception and problems on simulation

PostPosted: Thu Mar 19, 2015 9:04 pm
by julioall
I'm using 0.10 Beta 4. My main concern is what will happen when I try flying for real!

Re: Exception and problems on simulation

PostPosted: Thu Mar 19, 2015 9:13 pm
by Tom
I can not seem to reproduce it.... Could you write down the steps I need to take to reproduce it?

Also try with BETA 5 if possible:
https://drive.google.com/folderview?id= ... aring#list

Re: Exception and problems on simulation

PostPosted: Fri Mar 20, 2015 1:18 am
by julioall
Well what I did is to follow the steps to create a ZSurvey and then simulate it, nothing special really.
1) Helpers>Survey polygon>Create new
2) Add 4 absolute waypoints that enclose my AoI. Change Survey to ZSurvey
3)Helpers>Survey polygon>Build route [Distance between line: 82m, Altitude: 207m, Angle: 28] (here is where the exception appears)
4) Save file
5) Restart software on Simulation mode, load file, write to gluonpilot and execute.

The exception appears when you add an angle to the route. If you don't, there will be no exception. Nevertheless, the circle_to issue persist.

Something funny is that even though the installer says BETA5, when you run it it says BETA4.

Cheers!

Re: Exception and problems on simulation

PostPosted: Fri Mar 20, 2015 2:12 am
by julioall
Here is another observation:
I changed the circle_to altitude from 207m to 100m and VOILA!

http://i.imgur.com/mZW2h24.png

Subsequently, I did the same on other circle_to commands and everything worked just fine.
http://i.imgur.com/aaR6UNL.png

Then again, my concern is on real operations.

Re: Exception and problems on simulation

PostPosted: Fri Mar 20, 2015 2:35 am
by julioall
The whole thing was solved by the altitude input. I have looked for an explanation but with little success. Where can I find a resource to understand Altitude AGL: # m / # m. I know is the altitude above ground level but why is it divided?

Re: Exception and problems on simulation

PostPosted: Thu Apr 09, 2015 10:17 am
by Tom
Right one is target altitude!