Can one of the Dev's of Mission Planner please have a look at this error.
After the 1.3.50.1 release of Mission Planner, I can't Georeference my photos anymore.
I've followed the workflow a couple of times previous to the release and it worked without any issues.
My workflow is:
1. Sync camera to local time before I go out to the site.
2. Take a photo of the actual local time before the flight.
3. Determine the difference (Camera time - actual time) from the photo I took just before the flight.
4. In the geo ref tool of Mission Planner, Specify the log file and image folder, and use 'Time Offset' and enter the second in the 'Seconds offset' box.
I guess it is somehow trying to subtract the number of seconds from C#'s DateTime.MinValue in stead of the actual date/time, because it only give the error for positive numbers and the estimated time difference is -63643572421.5266 s (which is roughly the difference between now and 1 January 0001.)
I get this error.
Reading log for GPS-ATT Messages
Log locations : 4145
Read images
Images read : 146
Error System.AggregateException: One or more errors occurred. ---> System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
Parameter name: value
at System.DateTime.AddTicks(Int64 value)
at MissionPlanner.GeoRef.Georefimage.<>c__DisplayClass26_0.<doworkGPSOFFSET>b__1(String filename)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
at MissionPlanner.GeoRef.Georefimage.doworkGPSOFFSET(String logFile, String dirWithImages, Single offset)
at MissionPlanner.GeoRef.Georefimage.BUT_doit_Click(Object sender, EventArgs e)
---> (Inner Exception #0) System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
Parameter name: value
at System.DateTime.AddTicks(Int64 value)
at MissionPlanner.GeoRef.Georefimage.<>c__DisplayClass26_0.<doworkGPSOFFSET>b__1(String filename)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )<---
Replies
Just tried it successfully in the Beta Build (1.3.50.6).