Skip to content

Commit

Permalink
Georefimage: calc average offset ArduPilot#1057
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Nov 24, 2015
1 parent 5755556 commit e3d9158
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GeoRef/georefimage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ private double EstimateOffset(string logFile, string dirWithImages)

if (ans == 0)
ans = (double) (photoTime - logTime).TotalSeconds;
else
ans = ans*0.5 + (photoTime - logTime).TotalSeconds*0.5;
}

return ans;
Expand Down

0 comments on commit e3d9158

Please sign in to comment.