structuring the project and docs about drone code

This commit is contained in:
2025-01-29 11:51:07 +01:00
parent 1397d66b54
commit 8e91571c15
16 changed files with 31 additions and 3 deletions

View File

@@ -1,10 +1,15 @@
# Coding the drone
## What does every part of my code do?
### #include
`#include` includes an external library into the project so you can use it.
//TODO: add docs about working code not broken code
## Issues
### Using the wrong library for the BNO085
First used the wrong library I used the adafruit bno0xx library instead of the sparkfun bno08x library
First used the wrong library I used the adafruit bno0xx library instead of the sparkfun bno08x library. The Example script below this reads the BNO085 sensor and returns the values in the arduino serial console.
??? failure
@@ -108,3 +113,8 @@ First used the wrong library I used the adafruit bno0xx library instead of the s
//https://github.com/sparkfun/SparkFun_BNO080_Arduino_Library/blob/main/examples/Example24-UncalibratedGyro/Example24-UncalibratedGyro.ino
```
## New driver
After researching for a while and looking through other fab academy projects I found out that other people also made drones with microcontrollers and used a premade driver that they customised (https://fab.cba.mit.edu/classes/863.23/Architecture/people/Zhixing/finalproject.html). After doing some research on how to keep the drone upright I also decided to use an exisitng driver because the math required for that is way above my level.
### The new driver
Im gonna be using the [dRhemFlightVTOL](https://github.com/nickrehm/dRehmFlight/tree/master) driver. The only problem is that it doesn't support my Inertial measuring unit (BNO085). So I will have to customise the driver to make it work with it.

View File

@@ -0,0 +1,16 @@
# How to keep a drone upright
using accelerometers always try to keep them at 0
except if you press a button then the desired pitch changes.
https://www.reddit.com/r/diydrones/comments/1cm8ykx/how_is_stable_flight_possible/
https://github.com/lobodol/drone-flight-controller
https://github.com/liourej/CodeDroneDIY
https://electronoobs.com/eng_robotica_tut9_2_2.php
https://www.youtube.com/watch?v=4vpgjjYizVU

View File

@@ -2,4 +2,6 @@
Welcome to my project!
Other stuff will be here added later
Other stuff will be here added later
//TODO: About me and info about project.