AutoPilot

Showroom for MicroPython related hardware projects.
Target audience: Users wanting to show off their project!
Post Reply
User avatar
kamikaze
Posts: 154
Joined: Tue Aug 16, 2016 10:10 am
Location: Latvia
Contact:

AutoPilot

Post by kamikaze » Fri Jan 27, 2017 3:21 am

This is a huge project w/o any guarantee to be completed. But it's a very cool idea that consists of:

1) Make autopilot controller from PyBoard
2) Test it with FlightGear
3) Test it with real EDF jets (say hello to electronics, wirings etc)

Right now I'm able to poll FG for my jet position and send it via USB_VCP to PyBoard. PyBoard thinks that it is a real GPS data coming from GPS module (UART object is just replaced with USB_VCP). That way I can use simulated jet to work on AutoPilot logics without crashing real jets ))

Current status: VIDEO
There is a real IMU sensor attached for "N" value, while LAT/LON are fake from FlightGear

User avatar
kamikaze
Posts: 154
Joined: Tue Aug 16, 2016 10:10 am
Location: Latvia
Contact:

Re: AutoPilot

Post by kamikaze » Sun Jan 29, 2017 8:30 pm

Added datetime on the screen, adjusting RTC from GPS data. Video
Code is available HERE

User avatar
kamikaze
Posts: 154
Joined: Tue Aug 16, 2016 10:10 am
Location: Latvia
Contact:

Re: AutoPilot

Post by kamikaze » Sat Feb 18, 2017 1:44 am

First PoC manual throttle control for both engines by pressing a USR button on PyBoard: VIDEO

User avatar
kamikaze
Posts: 154
Joined: Tue Aug 16, 2016 10:10 am
Location: Latvia
Contact:

Re: AutoPilot

Post by kamikaze » Sun Mar 05, 2017 5:19 am

Added stupid version of a PID controller for speed/throttle. HERE it tries to maintain 600 kts speed.

User avatar
kamikaze
Posts: 154
Joined: Tue Aug 16, 2016 10:10 am
Location: Latvia
Contact:

Re: AutoPilot

Post by kamikaze » Thu Apr 12, 2018 11:41 pm

Yes, this is still a lot of "pc simulation side" progress, not PyBoard. But without this part it will be a nightmare to "debug" via REPL if possible at all. So I'm coupling PyBoard UAV part (runs on PyBoard) with FlightGear simulator via my own UAVSim stuff.

A little bit of updates:

1) Added interactive map to track current position
2) Storing some telemetry in HDF5 file, showing speed in UI
3) Positioning jet at any location by clicking on the map

TBC.

Post Reply