Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AeroRust's "Are we in space yet?" catalogue and no_std support #7

Closed
elpiel opened this issue Oct 28, 2022 · 3 comments
Closed

AeroRust's "Are we in space yet?" catalogue and no_std support #7

elpiel opened this issue Oct 28, 2022 · 3 comments

Comments

@elpiel
Copy link

elpiel commented Oct 28, 2022

Hello,
I'm the community manager of the AeroRust community and while researching different crates for orbital determination and propagation I landed on your project.

We have an ongoing effort to create a catalogue of crates related to aerospace.
I'd love to see sgp4 added to the Are we in space yet? catalogue - https://aerorust.org/catalogue/.
You can find sgp4 and other crates for addition to the website here - AeroRust/AeroRust.github.io#6
The categories are still a Work in progress and any additions/alterations are welcome.

On another note, I would love to see whether no_std is possible for the sgp4 crate at this stage and if all dependencies are needed to minimise the crate size for use in embedded.

@elpiel elpiel changed the title Are we in space yet? catalogue AeroRust's "Are we in space yet?" catalogue Oct 28, 2022
@elpiel elpiel changed the title AeroRust's "Are we in space yet?" catalogue AeroRust's "Are we in space yet?" catalogue and no_std support Oct 28, 2022
@aMarcireau
Copy link
Member

Hello,

That sounds like an exciting project! Do I need to do anything to add SGP4 to the Are we in space yet? catalogue?

no_std is possible in principle, but challenging because SGP4 uses trigonometric functions. These functions depend on the host OS for the moment. The following issue tracks ongoing efforts and suggested workarounds: rust-lang/rfcs#2505. However, the workarounds are platform-dependent.

@elpiel
Copy link
Author

elpiel commented Oct 29, 2022

Hello,

That sounds like an exciting project! Do I need to do anything to add SGP4 to the Are we in space yet? catalogue?

no_std is possible in principle, but challenging because SGP4 uses trigonometric functions. These functions depend on the host OS for the moment. The following issue tracks ongoing efforts and suggested workarounds: rust-lang/rfcs#2505. However, the workarounds are platform-dependent.

Catalogue addition

To add the crate you must update the scraper/config.toml file and define the categories in which sgp4 is part of ( astrodynamics I suppose). More details can be found in the issue - AeroRust/AeroRust.github.io#6

no_std

In the nmea crate we've used the num crate to add support for f32/f64 functions that are not included in core and it does support no_std - https://docs.rs/num/latest/num/trait.Float.html
You can rely only on the num-traits in this scenario.

https://github.com/AeroRust/nmea/blob/b73418af5bb61400e91c27bb3aa6103573fc182d/src/sentences/utils.rs#L14-L16

https://github.com/AeroRust/nmea/blob/b73418af5bb61400e91c27bb3aa6103573fc182d/src/sentences/utils.rs#L44

@elpiel
Copy link
Author

elpiel commented Jan 15, 2023

Thanks again for adding this amazing crate to the list.

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

No branches or pull requests

2 participants