From b41f190bb6baa7fdad257eca53c4458ba642950c Mon Sep 17 00:00:00 2001 From: Stavros Korokithakis Date: Tue, 6 Jul 2021 01:48:34 +0300 Subject: [PATCH] Updates --- content/drone-stuff/_index.md | 3 +- .../drone-stuff/ardupilot-setup-checklist.md | 6 +- content/drone-stuff/tecs-tuning-calculator.md | 90 +++++++++++++++++++ .../transmitter-external-module-pinout.md | 2 +- .../drone-stuff/transportable-c1-chaser.md | 2 +- joplinexport.py | 4 +- 6 files changed, 101 insertions(+), 6 deletions(-) create mode 100644 content/drone-stuff/tecs-tuning-calculator.md diff --git a/content/drone-stuff/_index.md b/content/drone-stuff/_index.md index a4f6783..6aa636f 100644 --- a/content/drone-stuff/_index.md +++ b/content/drone-stuff/_index.md @@ -9,7 +9,7 @@ insert_anchor_links = "right" Click on a link in the list below to go to that page: 1. [A simple guide to PID control](../../drone-stuff/a-simple-guide-to-pid-control) -1. [Ardupilot setup checklist](../../drone-stuff/ardupilot-setup-checklist) +1. [ArduPilot setup checklist](../../drone-stuff/ardupilot-setup-checklist) 1. [E6000 hinges](../../drone-stuff/e6000-hinges) 1. [FPV frequency chart](../../drone-stuff/fpv-frequency-chart) 1. [General RC tips](../../drone-stuff/general-rc-tips) @@ -20,5 +20,6 @@ Click on a link in the list below to go to that page: 1. [Omnibus F4 V3 pinout](../../drone-stuff/omnibus-f4-v3-pinout) 1. [Omnibus F4 pro servo diode](../../drone-stuff/omnibus-f4-pro-servo-diode) 1. [QGroundControl to Mission Planner conversion script](../../drone-stuff/qgroundcontrol-to-mission-planner-conversion-script) +1. [TECS tuning calculator](../../drone-stuff/tecs-tuning-calculator) 1. [Transmitter external module pinout](../../drone-stuff/transmitter-external-module-pinout) 1. [Transportable C1 Chaser](../../drone-stuff/transportable-c1-chaser) diff --git a/content/drone-stuff/ardupilot-setup-checklist.md b/content/drone-stuff/ardupilot-setup-checklist.md index 709257c..21e0dd6 100644 --- a/content/drone-stuff/ardupilot-setup-checklist.md +++ b/content/drone-stuff/ardupilot-setup-checklist.md @@ -1,5 +1,5 @@ +++ -title = "Ardupilot setup checklist" +title = "ArduPilot setup checklist" weight = 2 sort_by = "weight" insert_anchor_links = "right" @@ -203,6 +203,8 @@ You're done with this step. After you have the above measurements, you're ready to tune things. +You can either do things manually (below), or use the [TECS tuning calculator](../../drone-stuff/tecs-tuning-calculator) to get the appropriate parameters automatically. + For the level flight measurements: - [ ] Set `TRIM_ARSPD_CM` (cm/s) to your "comfortable cruise speed". @@ -266,6 +268,6 @@ _(Many thanks to Michel Pastor for his help with everything in this note.)_ * * *

-Last updated on June 22, 2021. For any questions/feedback, +Last updated on July 06, 2021. For any questions/feedback, email me at hi@stavros.io.

diff --git a/content/drone-stuff/tecs-tuning-calculator.md b/content/drone-stuff/tecs-tuning-calculator.md new file mode 100644 index 0000000..122115b --- /dev/null +++ b/content/drone-stuff/tecs-tuning-calculator.md @@ -0,0 +1,90 @@ ++++ +title = "TECS tuning calculator" +weight = 13 +sort_by = "weight" +insert_anchor_links = "right" ++++ +To use this calculator, first follow the steps in the [TECS tuning section](../../drone-stuff/ardupilot-setup-checklist#tuning-the-tecs) of the ArduPilot setup checklist. + + + +
+ +

Fly straight

+

+

+

+

+

+

+ +

Fly up

+

+

+ +

Fly down

+

+ +

Fly down more

+

+

+ +

+ +

+ +

+Run this command in a terminal, making sure you have [Parachute](https://gitlab.com/stavros/parachute) installed: + +

+(Please fill out the values above first)
+
+ +

+
+ + +* * * + +

+Last updated on July 06, 2021. For any questions/feedback, +email me at hi@stavros.io. +

diff --git a/content/drone-stuff/transmitter-external-module-pinout.md b/content/drone-stuff/transmitter-external-module-pinout.md index 62cf865..46821e0 100644 --- a/content/drone-stuff/transmitter-external-module-pinout.md +++ b/content/drone-stuff/transmitter-external-module-pinout.md @@ -1,6 +1,6 @@ +++ title = "Transmitter external module pinout" -weight = 13 +weight = 14 sort_by = "weight" insert_anchor_links = "right" +++ diff --git a/content/drone-stuff/transportable-c1-chaser.md b/content/drone-stuff/transportable-c1-chaser.md index 0ad5b75..79ef210 100644 --- a/content/drone-stuff/transportable-c1-chaser.md +++ b/content/drone-stuff/transportable-c1-chaser.md @@ -1,6 +1,6 @@ +++ title = "Transportable C1 Chaser" -weight = 14 +weight = 15 sort_by = "weight" insert_anchor_links = "right" +++ diff --git a/joplinexport.py b/joplinexport.py index 7928aa0..f8e6d9b 100755 --- a/joplinexport.py +++ b/joplinexport.py @@ -91,9 +91,11 @@ class JoplinExporter: new_url = self.get_resource_url_by_id(item_id) if not new_url: new_url = item_id + if match.group(2): + new_url += match.group(2) return f"](../../{new_url})" - return re.sub(r"\]\(:/([a-f0-9]{32})\)", replacement, note.body) + return re.sub(r"\]\(:/([a-f0-9]{32})(#.*?)?\)", replacement, note.body) def get_note_url_by_id(self, note_id: str) -> Optional[str]: """Return a note's relative URL by its ID."""