Skip to content

[Conversions] Add 2's complement conversions - #5648

Open
tonhuisman wants to merge 7 commits into
letscontrolit:megafrom
tonhuisman:feature/2-s-complement-conversions
Open

tonhuisman wants to merge 7 commits into
letscontrolit:megafrom
tonhuisman:feature/2-s-complement-conversions

Conversation

@tonhuisman

@tonhuisman tonhuisman commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Features:

  • Add 2's complement conversions %c_to2c%(<intvalue>,<bits>) and %c_fr2c%(<twoscmpl>,<bits>)
  • Include on System Variables page
  • Add documentation
  • Fix toTwosComplement() function as suggested here
  • [BusCmd_Helper] Fix the use of 2's complement values (used in P180)
  • [BusCmd_Helper] Fix LE conversions

TODO:

  • Testing (besides by me 😉)

Comment thread src/src/Helpers/Misc.cpp
Comment thread src/src/Helpers/BusCmd_Helper.cpp Outdated
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