-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mavlogd not processing SITL data correctly #573
Comments
Says processed and datapoints inserted, but no data seems to be actually go into influx |
When SITL log processed it's moved into archive/sitl. But oddly SITL seems to hold onto the file even if closed, as the next arming/flight it continues to write to this file even when moved. Also archiving the file means SITL starts the incremental numbering from scratch so there are multiple 00001.bin files that overwrite each other. |
Suppressed archiving logic so logfiles stay in place. Now SITL starts writing logfile when armed, closes the file when landed but keeps hold of the file. File then gets processed by mavlogd as expected. Next takeoff SITL starts writing to the file again but next landing it doesn't close it again, so mavlogd never picks it up for processing. Either that or pynotify doesn't re-pick it up. |
Set LOG_FILE_DSRMROT to Enabled to rotate log files on disarm. Mavlogd then behaves as expected. To process a file that keeps being written to, we will need more sophisticated handling of DFReader. From inotify:
|
So add a note to documentation about open files, and set SITL parameter LOG_FILE_DSRMROT automatically. |
Continuously reading logfiles is handled in separate issue: #500 |
Also if LOG_FILE_DSRMROT is not set, SITL will end up with a single long file with lots of flights and lots of gaps in between. Should be set automatically, however mavlogd doesn't connect to SITL, it just watches directories for files. |
Create params service for sitl with default config to enable LOG_FILE_DSRMROT and disable LOG_DISARMED. |
Params service created, LOG_FILE_DSRMROT enabled in SITL by default |
No description provided.
The text was updated successfully, but these errors were encountered: