Skip to content

Commit

Permalink
Add a link to sgp4-no-std
Browse files Browse the repository at this point in the history
  • Loading branch information
aMarcireau committed May 26, 2024
1 parent 5cdf614 commit 3a2b2c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ To run the Space-Track example, you must first assign your Space-Track.org crede

This crate supports `no_std` environments. TLE parsing and SGP4 propagation do not require `alloc` either. We use [num-traits](https://docs.rs/num-traits/latest/num_traits/) with [libm](https://docs.rs/libm/latest/libm/) for floating point functions when `std` is not available.

All serde-related features, in particular OMM parsing, require `alloc`.
See https://github.com/neuromorphicsystems/sgp4-no-std for a minimal no-std example that runs on Docker Linux x86_64.

All serde-related features, such as OMM parsing, require `alloc`.

## Benchmark

Expand Down
2 changes: 1 addition & 1 deletion src/tle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ impl DecimalPointAssumedRepresentation for [u8] {
end,
});
}
let mut raw_buffer = [0_u8; 16];
let mut raw_buffer = [0u8; 16];
let length;
if trimmed[0] == b'-' {
if trimmed.len() < 2 || trimmed.len() + 1 > raw_buffer.len() {
Expand Down

0 comments on commit 3a2b2c7

Please sign in to comment.