From 8e91571c15155cebcf4961b36c42e6c64ff12555 Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Wed, 29 Jan 2025 11:51:07 +0100 Subject: [PATCH] structuring the project and docs about drone code --- .../bootcamp/basic _linux_commands.md | 0 docs/{ => Assignments}/bootcamp/final_project.md | 0 docs/{ => Assignments}/bootcamp/git-setup.md | 0 .../bootcamp/global_lesson2_notes.md | 0 docs/{ => Assignments}/bootcamp/imagemagick.md | 0 docs/{ => Assignments}/bootcamp/mkdocs.md | 0 docs/{ => Assignments}/bootcamp/ssh_config.md | 0 .../week_1_fabacademy/customising_mkdocs.md | 0 .../week_1_fabacademy/fritzing.md | 0 .../week_1_fabacademy/lecture_notes.md | 0 .../week_1_fabacademy/markdown.md | 0 .../drone_breadboard.md | 0 .../drone_code.md | 14 ++++++++++++-- docs/final_project/drone_stabilisation.md | 16 ++++++++++++++++ .../microcontrollers.md | 0 docs/index.md | 4 +++- 16 files changed, 31 insertions(+), 3 deletions(-) rename docs/{ => Assignments}/bootcamp/basic _linux_commands.md (100%) rename docs/{ => Assignments}/bootcamp/final_project.md (100%) rename docs/{ => Assignments}/bootcamp/git-setup.md (100%) rename docs/{ => Assignments}/bootcamp/global_lesson2_notes.md (100%) rename docs/{ => Assignments}/bootcamp/imagemagick.md (100%) rename docs/{ => Assignments}/bootcamp/mkdocs.md (100%) rename docs/{ => Assignments}/bootcamp/ssh_config.md (100%) rename docs/{ => Assignments}/week_1_fabacademy/customising_mkdocs.md (100%) rename docs/{ => Assignments}/week_1_fabacademy/fritzing.md (100%) rename docs/{ => Assignments}/week_1_fabacademy/lecture_notes.md (100%) rename docs/{ => Assignments}/week_1_fabacademy/markdown.md (100%) rename docs/{week_1_fabacademy => final_project}/drone_breadboard.md (100%) rename docs/{week_1_fabacademy => final_project}/drone_code.md (74%) create mode 100644 docs/final_project/drone_stabilisation.md rename docs/{week_1_fabacademy => final_project}/microcontrollers.md (100%) diff --git a/docs/bootcamp/basic _linux_commands.md b/docs/Assignments/bootcamp/basic _linux_commands.md similarity index 100% rename from docs/bootcamp/basic _linux_commands.md rename to docs/Assignments/bootcamp/basic _linux_commands.md diff --git a/docs/bootcamp/final_project.md b/docs/Assignments/bootcamp/final_project.md similarity index 100% rename from docs/bootcamp/final_project.md rename to docs/Assignments/bootcamp/final_project.md diff --git a/docs/bootcamp/git-setup.md b/docs/Assignments/bootcamp/git-setup.md similarity index 100% rename from docs/bootcamp/git-setup.md rename to docs/Assignments/bootcamp/git-setup.md diff --git a/docs/bootcamp/global_lesson2_notes.md b/docs/Assignments/bootcamp/global_lesson2_notes.md similarity index 100% rename from docs/bootcamp/global_lesson2_notes.md rename to docs/Assignments/bootcamp/global_lesson2_notes.md diff --git a/docs/bootcamp/imagemagick.md b/docs/Assignments/bootcamp/imagemagick.md similarity index 100% rename from docs/bootcamp/imagemagick.md rename to docs/Assignments/bootcamp/imagemagick.md diff --git a/docs/bootcamp/mkdocs.md b/docs/Assignments/bootcamp/mkdocs.md similarity index 100% rename from docs/bootcamp/mkdocs.md rename to docs/Assignments/bootcamp/mkdocs.md diff --git a/docs/bootcamp/ssh_config.md b/docs/Assignments/bootcamp/ssh_config.md similarity index 100% rename from docs/bootcamp/ssh_config.md rename to docs/Assignments/bootcamp/ssh_config.md diff --git a/docs/week_1_fabacademy/customising_mkdocs.md b/docs/Assignments/week_1_fabacademy/customising_mkdocs.md similarity index 100% rename from docs/week_1_fabacademy/customising_mkdocs.md rename to docs/Assignments/week_1_fabacademy/customising_mkdocs.md diff --git a/docs/week_1_fabacademy/fritzing.md b/docs/Assignments/week_1_fabacademy/fritzing.md similarity index 100% rename from docs/week_1_fabacademy/fritzing.md rename to docs/Assignments/week_1_fabacademy/fritzing.md diff --git a/docs/week_1_fabacademy/lecture_notes.md b/docs/Assignments/week_1_fabacademy/lecture_notes.md similarity index 100% rename from docs/week_1_fabacademy/lecture_notes.md rename to docs/Assignments/week_1_fabacademy/lecture_notes.md diff --git a/docs/week_1_fabacademy/markdown.md b/docs/Assignments/week_1_fabacademy/markdown.md similarity index 100% rename from docs/week_1_fabacademy/markdown.md rename to docs/Assignments/week_1_fabacademy/markdown.md diff --git a/docs/week_1_fabacademy/drone_breadboard.md b/docs/final_project/drone_breadboard.md similarity index 100% rename from docs/week_1_fabacademy/drone_breadboard.md rename to docs/final_project/drone_breadboard.md diff --git a/docs/week_1_fabacademy/drone_code.md b/docs/final_project/drone_code.md similarity index 74% rename from docs/week_1_fabacademy/drone_code.md rename to docs/final_project/drone_code.md index 6d2222e..73176a0 100644 --- a/docs/week_1_fabacademy/drone_code.md +++ b/docs/final_project/drone_code.md @@ -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. \ No newline at end of file diff --git a/docs/final_project/drone_stabilisation.md b/docs/final_project/drone_stabilisation.md new file mode 100644 index 0000000..5f97233 --- /dev/null +++ b/docs/final_project/drone_stabilisation.md @@ -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 \ No newline at end of file diff --git a/docs/week_1_fabacademy/microcontrollers.md b/docs/final_project/microcontrollers.md similarity index 100% rename from docs/week_1_fabacademy/microcontrollers.md rename to docs/final_project/microcontrollers.md diff --git a/docs/index.md b/docs/index.md index 9b2f840..9e3907a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,4 +2,6 @@ Welcome to my project! -Other stuff will be here added later \ No newline at end of file +Other stuff will be here added later + +//TODO: About me and info about project. \ No newline at end of file