Skip to content

Comments

Telemetry log endpoint feature#84

Closed
landswellsong wants to merge 1 commit intobluenviron:mainfrom
Ecognize:log
Closed

Telemetry log endpoint feature#84
landswellsong wants to merge 1 commit intobluenviron:mainfrom
Ecognize:log

Conversation

@landswellsong
Copy link

I've added an option to specify tlog: endpoints that would write incoming traffic in a Mavlink Logfile.

I thought it might be useful to make a PR of. It seems to be working alright, but my Go is very rusty (pun not intended) so I think the quality of the code can be improved.

In particular things I'm not very sure about:

  • Is it fine to lock up the Read() method like that? Ideally I'd pause that goroutine until the exit sequence, but I'm not very sure how to do that properly without altering gomavlib too much.
  • Does gomavlib issue writes in full packets? There seem to be some buffering involved, but I'm not entirely sure how Go's buffering operates. Currently my code assumes that the bytes to write is a whole single packet.

@aler9
Copy link
Member

aler9 commented Mar 2, 2025

Hello, this is OK but i'd like to move the log reader and writer inside gomavlib, and the use it in mavp2p.
If i remember correctly, until some time ago there was no agreement about a file format for storing Mavlink logs.
However, the format mentioned in the QGroundControl repository seems robust enough for me, so we can surely start from that.

aler9 added a commit to bluenviron/gomavlib that referenced this pull request Mar 3, 2025
aler9 added a commit to bluenviron/gomavlib that referenced this pull request Mar 3, 2025
aler9 added a commit to bluenviron/gomavlib that referenced this pull request Mar 3, 2025
aler9 added a commit to bluenviron/gomavlib that referenced this pull request Mar 3, 2025
aler9 added a commit to bluenviron/gomavlib that referenced this pull request Mar 3, 2025
aler9 added a commit to bluenviron/gomavlib that referenced this pull request Mar 3, 2025
aler9 added a commit to bluenviron/gomavlib that referenced this pull request Mar 3, 2025
aler9 added a commit that referenced this pull request Mar 6, 2025
@aler9
Copy link
Member

aler9 commented Mar 6, 2025

replaced by #106

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants