Skip to content

parsley-ts: add field transcoders (Numeric, Enum, ASCII, Floating, Switch, Bitfield) - #2

Open
ShreyShingala wants to merge 6 commits into
monorepo-setupfrom
parsley-ts-fields
Open

ShreyShingala wants to merge 6 commits into
monorepo-setupfrom
parsley-ts-fields

Conversation

@ShreyShingala

Copy link
Copy Markdown
Member

Ports Python parsley's field types to TypeScript: Field plus ASCII, Enum, Numeric, Floating, Switch and Bitfield, each encoding and decoding its slice of a CAN message's bits the same way fields.py does. These are the building blocks for the encoder/decoder stacked on top of this PR, and include the bitfield decoding asked for in waterloo-rocketry/2026-2027-software-issues#11.

Moved from waterloo-rocketry/parsley-ts#5 with its original commits.

messageTypes was renamed CamelCase->snake_case upstream and the
board error bitfield grew past 16 bits, so widen the bitfield test
to 32 bits to match the spec.
@ShreyShingala

ShreyShingala commented Oct 4, 2026 •

Copy link
Copy Markdown
Member Author

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