Skip to content

Aris/cflib2/loco tab - #839

Draft
ArisMorgens wants to merge 3 commits into
cflib2from
Aris/cflib2/loco-tab
Draft

ArisMorgens wants to merge 3 commits into
cflib2from
Aris/cflib2/loco-tab

Conversation

@ArisMorgens

Copy link
Copy Markdown
Member

This PR adds the Loco Positioning tab to the cflib2-based cflient.

Main changes compared to master:

  • The Loco deck and loco.mode params are read once on connect. Master used param update callbacks.
  • The anchor position dialog is closed on disconnect.
  • AnchorStateMachine and its timer are replaced by one polling loop using Memory.read_loco_anchor_data().
  • The active anchor list and all anchor positions are read every second. On master, positions were only refreshed in one of every eight polls.
  • Errors that are not acted on, are not caught.

In 437ea53, I tried to improve the anchor position writing process. Specifically:

  • Only anchors whose reported position differs from the target are written. This leaves room in the Crazyflie's 10-packet LPP queue for the anchors that need updating.
  • Each write logs which anchors were written and how many were already up to date.

This branch has not been deployed

No deployments
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.

1 participant