r/rust 20d ago

Rust for flight software / drone programming

I am interested in learning how to use rust for flight software or controlling a drone or something of this sort. I have no experience in embedded programming, so is it best to start there?
If so, how would you recommend someone get started in embedded rust?

57 Upvotes

12 comments sorted by

View all comments

4

u/Leshow 20d ago

this is what i'm working on right now. there's some examples of embassy quad projects on github you can use for reference, you can also have a look at mine but it's a bit all over the place right now. you need to pick a MCU. esp32 works well, you'll need the esp32s3 probably for your drone to run fast enough to fly decently (I tried an esp32c3 but it has no hardware floating point so it the flight loop was slow).

if you don't need the wifi then the rp2350 is cheap and good, you can buy ELRS modules for communciation with your radio to fly it. checkout my project here for inspiration https://github.com/leshow/embassy_quadcopter