Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor dronecan pwm feedback and crct #65

Merged
merged 4 commits into from
Sep 24, 2024

Conversation

PonomarevDA
Copy link
Contributor

@PonomarevDA PonomarevDA commented Sep 24, 2024

This PR moves dronecan feedback logic from pwm module to a separate mode, cleans up dronecan circuit status logic and fixes bug with dronecan logger.

Changes in parameters:

  • add crct.bitmask - it allows to enable/disable separate publishers and hardware checks
  • use a single feedback.type instead of 4 similar parameters
  • rename pwm params to be consistent with the cyphal specification

Firmware image size difference

  • dronecan_v2: 40144 -> 40788 (+644)
  • dronecan_v3: 49276 -> 49904 (+628)
  • cyphal_v2: +0
  • cyphal_v3: +0

Test coverage

  • In SITL
  • With mini v2 node

@PonomarevDA PonomarevDA self-assigned this Sep 24, 2024
@PonomarevDA PonomarevDA force-pushed the pr-refactor-dronecan-feedback-and-crct branch from 13647a0 to 6d00b6c Compare September 24, 2024 15:32
@PonomarevDA PonomarevDA force-pushed the pr-refactor-dronecan-feedback-and-crct branch from 73402a5 to 58dec64 Compare September 24, 2024 19:51
@PonomarevDA PonomarevDA force-pushed the pr-refactor-dronecan-feedback-and-crct branch from 1fff11f to 7a6e3fe Compare September 24, 2024 20:06
@PonomarevDA PonomarevDA added bug Something isn't working enhancement New feature or request labels Sep 24, 2024
@PonomarevDA PonomarevDA marked this pull request as ready for review September 24, 2024 20:08
@PonomarevDA PonomarevDA merged commit d4bb13e into main Sep 24, 2024
7 checks passed
@PonomarevDA PonomarevDA deleted the pr-refactor-dronecan-feedback-and-crct branch September 24, 2024 20:09
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working clean up enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant