Skip to content

Conversation

@gemenerik
Copy link
Member

Use new V2 commands (MISC_GET_EXTENDED_TYPE_V2, MISC_GET_DEFAULT_VALUE_V2) when CRTP protocol >= 11 (requires bitcraze/crazyflie-firmware#1594) to get unambiguous success/error responses.

Use new V2 commands (MISC_GET_EXTENDED_TYPE_V2, MISC_GET_DEFAULT_VALUE_V2)
when protocol >= 11 to get unambiguous success/error responses.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for CRTP protocol version 11, introducing new V2 commands for parameter MISC operations that provide unambiguous success/error responses. The implementation maintains full backward compatibility with older protocol versions.

Changes:

  • Added two new command constants for V2 MISC operations (MISC_GET_EXTENDED_TYPE_V2 and MISC_GET_DEFAULT_VALUE_V2)
  • Updated get_default_value() method to use V2 command format when protocol version >= 11
  • Updated _ExtendedTypeFetcher class to use V2 command format when protocol version >= 11

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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