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

Add POC Rust Crazyflie app example #1429

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Conversation

ataffanel
Copy link
Member

This PR adds a Proof Of Concept Rust Crazyflie hello world app.

Some creativity was needed to link the Rust-generated static lib in the Crazyflie firmware. This implementation could be used as a base to fix issues #1354 and #1404.

@ataffanel
Copy link
Member Author

ataffanel commented Oct 29, 2024

I unfortunately do not have access to a Crazyflie at the moment so all I could test is that it compiled and linked. This is the same code as in the previous example (at https://github.com/ataffanel/crazyflie-app-hello-rs), so the rust part should be OK. Though, it definitely needs to be tested on a real CF before merging!

Copy link
Contributor

@whoenig whoenig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this PR. Both compilation (Ubuntu 24.04, rust 1.82.0) and test (connecting via CFClient to a Crazyflie 2.1 with the built firmware) work fine and the text shows up on the console.

Code looks good to me as well.

@ataffanel
Copy link
Member Author

Thanks for testing! I am merging it.

@ataffanel ataffanel merged commit bf168d4 into master Oct 30, 2024
25 checks passed
@ataffanel ataffanel deleted the ataffanel/kbuild-rust-app branch October 30, 2024 13:37
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.

2 participants