Doing so I have noticed that the directions of all images taken while moving east (1-180°) are calculated correctly by the Virb, while all images taken while moving west (180-360°) are borked in some weird way that by the plugin is always shown as 90° left to the actual direction of travel.
Travelling slightly SE
Travelling slightly SW
Now I’d like to know how to compute the correct direction from this. Is it possible?
What I think is happening is:
4294967295 Is the maximum number an unsigned integer can show. It cannot store negative numbers. Maybe the Virb records the compass heading as +/-180 from the zero degree mark (probably north).
As the plugin can’t handle a negative value, it wraps around, giving you your weird value.
If there’s a way to change the settings to make the heading absolute, rather than relative to north, it might fix it. I don’t have a Virb to advise further though.
A bit of maths could modify the exif files potentially, too. E.g. subtract 4294966935 (this is 4294967295 -360) and it will give you the correct heading.
It could possibly also be fixed in the plugin. If you have access to the code, or a similar setting is available.
@hjart, I have a couple Garmin elites. sometimes they just get the direction wrong. Others are in the side window of the car. I just go into the mapillary map after uploading them and change the sequence direction. Give me a holler if it would help for me to share an example with screen shots.
will find the images on the Virb which has broken values.
Now I just need to figure out how to subtract 4294966935 from GPSImgDirection in that commandline and write it to the images.
For your info the following is what Exiftool reports on one imagefile from the Virb:
Note that the problem is in the Virb image, not the JOSM plugin (which unlike i.e. the Mapillary website just happens to make some sense from the value).
Also note that my Virb is usually firmly mounted on my bicycle handlebar (when I’m not using it like an ordinary camera) and always pointing straight forward and that it doesn’t “just sometimes get the direction wrong”. It’s always when it’s pointing west.
Update:
I had tried to use decrement, but without any luck.
Thank you. The Garmin Virb Elite is quite reliable though (except for the small bug described above) and none of those tools will improve on it’s reliability.
Note that the device calculates image directions from the direction it’s moving and that I consider those slightly more reliable than interpolated directions calculated later by scripts etc