Skip to content

Taking first valid GPS message for time sync#21

Open
Jair-F wants to merge 3 commits into
ArduPilot:mainfrom
Jair-F:windows_build
Open

Taking first valid GPS message for time sync#21
Jair-F wants to merge 3 commits into
ArduPilot:mainfrom
Jair-F:windows_build

Conversation

@Jair-F

@Jair-F Jair-F commented Jul 3, 2026

Copy link
Copy Markdown

Hey,
I added that the plugin uses the first valid GPS and not only the first GPS message in the log.
Had this problem recently that the Pixhawk booted up without GPS signal right after boot and then the log time sync didn't worked.

Changes:

  • Added GPS time sync to the first valid GPS message instead of just the first message in the log
  • speed up the windows compilation process to multi process compilation
  • fixed windows compilation image. windows-latest was updated.

@Georacer Georacer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! Thank you for the PR!

A few questions:

  1. Why replace windows-latest with 2022? This sounds like a pretty old image. What is the benefit of doing that?
  2. Could you squash your commits so that there is one commit for each concrete change? Right now there are too many little incremental changes.

I've also left an inline question too.

Comment thread README.md Outdated
3. Build the plugin with
```bash
docker build -o type=local,dest=artifacts .
docker build -o type=local,dest=artifacts --build-arg ADD_UNITS=ON .

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We usually have units off, to not break people's older layouts. Do you have an argument to have this on by default?

@Georacer

Georacer commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

I would prefer you split your commits like I did in this branch, where I copied your work: https://github.com/Georacer/plotjuggler-apbin-plugins/commits/pr3/gps_message/

I didn't use my branch to merge your work in, to give you a chance to have your signed commit in our APBin repo. But if that's not important to you, I can use my branch to bring in the new code.

By the way, the Windows CI build now passes, many thanks!

Jair-F added 3 commits July 5, 2026 08:12
with units

restore

restore

fix win build

try fix

fix plotjuggler multicore build

fix linux build

try again

try fix

fix run on windows 22

removed not needed windows files
faster build + fix take first valid gps msg

fixes

Refactor GPS time conversion and synchronization

Refactor gps_to_unix_time function and update time synchronization logic to improve clarity and accuracy.

Add support for tag-based builds in CI workflow

Fix formatting issues in win_build.yml

Update GitHub Actions workflow for PlotJuggler build

fix time range
@Jair-F

Jair-F commented Jul 5, 2026

Copy link
Copy Markdown
Author

Hi,
I squashed the commits and removed the default argument with the units.
If there is anything else you want me to change please let me know.
Jair

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