Northeastern-Electric-Racing / Northeastern-Electric-Racing/Calypso
Add little endian iee754 f32 decoding.
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2
- Forks
- 2
- Avg merge
- 6d 20h
- Merged PRs (30d)
- 3
Description
Description
We have big endian decoding. Lets get little endian decoding going as well. For this, a switch to from_be_bytes and from_le_bytes will be in order. We dont send bitaligned floats anyway.
Acceptance Criteria
Test and ensure can read both little endian floats (not endian swapped in C) and big endian floats.
Proposed Solution
Change the match statements to from_be_bytes and from_le_bytes, from_bits isnt needed.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the match statements that decode f32 values and review the existing big-endian path. Add coverage for both little-endian floats and big-endian floats, including values that are not endian-swapped in C; done means both byte orders decode correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100