Skip to content

feat(py): add typed copperlist Python bindings and flight-controller GNSS example#895

Merged
gbin merged 29 commits into
masterfrom
gbin/py_cl
Mar 6, 2026
Merged

feat(py): add typed copperlist Python bindings and flight-controller GNSS example#895
gbin merged 29 commits into
masterfrom
gbin/py_cl

Conversation

@gbin

@gbin gbin commented Mar 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

Added a full reflected python API for log extraction:

   print(f"reading: {log_path}")
    count = 0
    for copperlist in libcu_flight_controller_export.copperlist_iterator_unified(str(log_path)):
        for msg in copperlist.messages:
            if msg.task_id != "gnss_fix_sink":
                continue

            print(
                f"id={copperlist.id} task={msg.task_id} "
                f"lat={msg.payload.latitude.value:.7f} {msg.payload.latitude.unit} "
                f"lon={msg.payload.longitude.value:.7f} {msg.payload.longitude.unit}"
            )
            count += 1

    print(f"printed {count} GNSS fixes")

Related issues

  • Closes #

Changes

Testing

  • just fmt
  • just lint
  • just test
  • optional full just std-ci (if std/runtime paths are impacted)
  • optional full just nostd-ci (if embedded/no_std paths are impacted)
  • Other (please specify):

pro-tip: just with no parameters in the root defaults to just fmt, just lint, and just test.

Checklist

  • I have updated docs or examples where needed
  • I have added or updated tests where needed
  • I have considered platform impact (Linux/macOS/Windows/embedded)
  • I have considered config/logging changes (if applicable)
  • This change is not a breaking change (or I documented it below)

Breaking changes (if any)

Additional context

gbin added 26 commits March 5, 2026 15:37
# Conflicts:
#	components/libs/cu_transform/src/transform_payload.rs
# Conflicts:
#	components/libs/cu_transform/src/transform_payload.rs
@gbin gbin added enhancement New feature or request github_actions Pull requests that update GitHub Actions code include in changelog and removed github_actions Pull requests that update GitHub Actions code labels Mar 6, 2026
@gbin gbin merged commit e0e4436 into master Mar 6, 2026
23 checks passed
@gbin gbin deleted the gbin/py_cl branch March 6, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant