Northeastern-Electric-Racing / Northeastern-Electric-Racing/Calypso

Add little endian iee754 f32 decoding.

Open
#80 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.