Skip to content

feat(radio): allow user to choose only one log file per day#7163

Open
3djc wants to merge 3 commits intomainfrom
3djc/one_log_per_day
Open

feat(radio): allow user to choose only one log file per day#7163
3djc wants to merge 3 commits intomainfrom
3djc/one_log_per_day

Conversation

@3djc
Copy link
Copy Markdown
Collaborator

@3djc 3djc commented Mar 10, 2026

This fixes an issue introduced by an old change (#550) that introduced time based logs instead of one per day. This unfortunately ignored the fact that FAT32 doesn't like at all directories with large number of files, and also that some user simply prefer less log files

This allows users to opt in for one log file per day. I personally think that should be the default behavior for the FAT32 reason above, but I did not go that far to not contradict early ETX decisions

This fixes #6965

@elecpower , could you take care of companion part ?

@3djc 3djc added enhancement ✨ New feature or request needs: companion labels Mar 10, 2026
@3djc 3djc force-pushed the 3djc/one_log_per_day branch from 91551f2 to 0dcd4dc Compare March 10, 2026 08:51
@elecpower
Copy link
Copy Markdown
Collaborator

@elecpower , could you take care of companion part ?

Yes

@Johanl1964
Copy link
Copy Markdown

Will this be optional? I fly RC gliders myself with both long and many flights during a day! Uses ELRS, GPS, Vario etc, logs with 0.3 sec. So each minute of flight gives about 72 kb, so for example a common 90 minute flight gives about 6.5MB, and it is not uncommon that there can be a total of 6 hours of flight during a day, so if this were to be collected in the same file it would be about 26MB which would probably create problems because it is already tough to handle files over 5MB

@Johanl1964
Copy link
Copy Markdown

Will this be optional? I fly RC gliders myself with both long and many flights during a day! Uses ELRS, GPS, Vario etc, logs with 0.3 sec. So each minute of flight gives about 72 kb, so for example a common 90 minute flight gives about 6.5MB, and it is not uncommon that there can be a total of 6 hours of flight during a day, so if this were to be collected in the same file it would be about 26MB which would probably create problems because it is already tough to handle files over 5MB

Tested now, and saw you can choose, so there was no danger of too large log files that could break the transmitter/Companion

@3djc
Copy link
Copy Markdown
Collaborator Author

3djc commented Mar 10, 2026

Not should there be any. It should handle large files without specific issues, much better than large directories anyway

@Johanl1964
Copy link
Copy Markdown

Not should there be any. It should handle large files without specific issues, much better than large directories anyway

I usually download the log files to the computer (Linux). But those over 5mb become/are very sluggish in Companion, and files over 8mb can cause Companion to hang, and this applies to several of my Linux computers!

@pfeerick
Copy link
Copy Markdown
Member

I.e. you're experiencing #7159 also

@pfeerick
Copy link
Copy Markdown
Member

This is something I think we (by we I probably mean me 🤪) should include in 2.12 (i.e. 2.12.1) and also backport to 2.11.

@pfeerick pfeerick added backport/2.11 To be backported to a 2.11 release also. backport/2.12 To be backported to a 2.12 release also. labels Mar 10, 2026
@pfeerick pfeerick added this to the 2.11.6 milestone Mar 10, 2026
@3djc
Copy link
Copy Markdown
Collaborator Author

3djc commented Mar 11, 2026

This is something I think we (by we I probably mean me 🤪) should include in 2.12 (i.e. 2.12.1) and also backport to 2.11.

i won't disagree ! Shoot if you want me to work on something

@Johanl1964
Copy link
Copy Markdown

I.e. you're experiencing #7159 also

That's right, I've been using the latest V3 Companion for a long time, but the versions in recent months have been slightly faster, but the problem remains...

@Johanl1964
Copy link
Copy Markdown

Today I tested "on log per day" in practice (in the air). Works fine except that Companion (Linux) handles large CSV files extremely sluggishly and slowly.... Today's file was "only" about 23mb, it can actually be double that during a whole day of flights, and then there will probably be problems!?
Skärmbild från 2026-03-21 14-58-39

@pfeerick
Copy link
Copy Markdown
Member

Today I tested "on log per day" in practice (in the air). Works fine except that Companion (Linux) handles large CSV files extremely sluggishly and slowly.... Today's file was "only" about 23mb, it can actually be double that during a whole day of flights, and then there will probably be problems!?

See #7159.

@pfeerick pfeerick force-pushed the 3djc/one_log_per_day branch from 01d7ba8 to 368280e Compare March 22, 2026 00:24
@elecpower
Copy link
Copy Markdown
Collaborator

PR #7205 should improve performance

@Johanl1964
Copy link
Copy Markdown

PR #7205 should improve performance

PR #7205 should improve performance

Have now tested the companion (Linux), now works really fast with large files, nice work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/2.11 To be backported to a 2.11 release also. backport/2.12 To be backported to a 2.12 release also. enhancement ✨ New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option for daily log files

4 participants