Log download fails on filename collision when logs have no GPS time

Logs downloaded via MAVLink from vehicles without GPS get no valid timestamp, so they’re saved as e.g. ArduCopter\1\1 01-01-1980 01-00-00.bin. With several vehicles on the default SYSID and log numbers restarting after erase, names collide quickly and the download fails with “Error renaming file” (GetLog() in LogDownloadMavLink.cs).

Could the filename get an extra differentiator when there’s no GPS time, such as the download timestamp or a unique suffix on collision?

1 Like