diff --git a/content/drone-stuff/_index.md b/content/drone-stuff/_index.md index c33dcac..b4712c7 100644 --- a/content/drone-stuff/_index.md +++ b/content/drone-stuff/_index.md @@ -1,7 +1,14 @@ +++ title = "Drone stuff" -weight = 2 +weight = 3 sort_by = "weight" insert_anchor_links = "right" +++ -Select one of the sublinks on the left to see the notes in this section. \ No newline at end of file +## Contents + +Click on a link in the list below to go to that page: + +1. [Getting uninverted SBUS on a no-name FrSky-compatible receiver](../../drone-stuff/getting-uninverted-sbus-on-a-no-name-frsky-compatible-receiver) +1. [Getting uninverted SBUS on the FrSky XSR receiver](../../drone-stuff/getting-uninverted-sbus-on-the-frsky-xsr-receiver) +1. [Omnibus F4 V3](../../drone-stuff/omnibus-f4-v3) +1. [Omnibus F4 pro servo diode](../../drone-stuff/omnibus-f4-pro-servo-diode) diff --git a/content/drone-stuff/getting-uninverted-sbus-on-a-no-name-frsky-compatible-receiver.md b/content/drone-stuff/getting-uninverted-sbus-on-a-no-name-frsky-compatible-receiver.md new file mode 100644 index 0000000..546f979 --- /dev/null +++ b/content/drone-stuff/getting-uninverted-sbus-on-a-no-name-frsky-compatible-receiver.md @@ -0,0 +1,14 @@ ++++ +title = "Getting uninverted SBUS on a no-name FrSky-compatible receiver" +weight = 0 +sort_by = "weight" +insert_anchor_links = "right" ++++ +I got an [RC receiver](https://www.banggood.com/2_4G-8CH-D8-Mini-FrSky-Compatibel-Receiver-With-PWM-PPM-SBUS-Output-p-1140478.html?rmmds=myorder&cur_warehouse=CN) from Banggood. There's uninverted SBUS on this pad: + +![rc-sbus.jpg](../../ccc7571db5d147328860077fdc0aa745.jpg) + +To break this out to the SBUS pad, I had to remove/bridge the resistor that is circled in the image, and remove/bridge the FET on the other side: + +![rc-sbus-mosfet.jpg](../../1b0f508a533e45b496c6636d49161b0c.jpg) + diff --git a/content/drone-stuff/getting-uninverted-sbus-on-the-frsky-xsr-receiver.md b/content/drone-stuff/getting-uninverted-sbus-on-the-frsky-xsr-receiver.md new file mode 100644 index 0000000..2dafb04 --- /dev/null +++ b/content/drone-stuff/getting-uninverted-sbus-on-the-frsky-xsr-receiver.md @@ -0,0 +1,16 @@ ++++ +title = "Getting uninverted SBUS on the FrSky XSR receiver" +weight = 1 +sort_by = "weight" +insert_anchor_links = "right" ++++ +To get uninverted SBUS on the FrSky XSR/X4RS receiver, you can repurpose the CPPM pad. +Just solder the following: + +![xsr-sbus.jpeg](../../f86da9a7aac1413ebd77825897164f7f.jpeg) + +> Remove the two resistors and solder a small wire from the CPPM pin pad to both (!!!) of the lower resistor solder pads. + +![xsr-sbus2.jpeg](../../815576429ece43789dbc70dfd33517a1.jpeg) + +Now the CPPM pad will be uninverted SBUS instead. \ No newline at end of file diff --git a/content/drone-stuff/omnibus-f4-pro-servo-diode.md b/content/drone-stuff/omnibus-f4-pro-servo-diode.md index e888338..0792ddb 100644 --- a/content/drone-stuff/omnibus-f4-pro-servo-diode.md +++ b/content/drone-stuff/omnibus-f4-pro-servo-diode.md @@ -1,6 +1,6 @@ +++ title = "Omnibus F4 pro servo diode" -weight = 1 +weight = 3 sort_by = "weight" insert_anchor_links = "right" +++ diff --git a/content/drone-stuff/omnibus-f4-v3.md b/content/drone-stuff/omnibus-f4-v3.md index 1bd9913..3fb793d 100644 --- a/content/drone-stuff/omnibus-f4-v3.md +++ b/content/drone-stuff/omnibus-f4-v3.md @@ -1,6 +1,6 @@ +++ title = "Omnibus F4 V3" -weight = 0 +weight = 2 sort_by = "weight" insert_anchor_links = "right" +++ diff --git a/content/welcome/_index.md b/content/welcome/_index.md index ccd45f8..fe2b9a0 100644 --- a/content/welcome/_index.md +++ b/content/welcome/_index.md @@ -1,7 +1,11 @@ +++ title = "Welcome" -weight = 1 +weight = 0 sort_by = "weight" insert_anchor_links = "right" +++ -Select one of the sublinks on the left to see the notes in this section. \ No newline at end of file +## Contents + +Click on a link in the list below to go to that page: + +1. [Stavros' notes](../../welcome/stavros-notes) diff --git a/joplinexport.py b/joplinexport.py index 1717234..338bd12 100755 --- a/joplinexport.py +++ b/joplinexport.py @@ -111,21 +111,12 @@ class JoplinExporter: folder_id, folder_title = folder dir = self.content_dir / slugify(folder_title) dir.mkdir(parents=True) - with (dir / "_index.md").open(mode="w") as outfile: - outfile.write( - f"""+++ -title = "{folder_title}" -weight = {counter} -sort_by = "weight" -insert_anchor_links = "right" -+++ -Select one of the sublinks on the left to see the notes in this section.""" - ) - + contents = [] for counter, note in enumerate( sorted(self.notes[folder_id], key=lambda n: n.title) ): print(f"Exporting {folder_title} - {note.title}...") + contents.append((note.title, note.get_url())) with (self.content_dir / (note.get_url() + ".md")).open( mode="w" ) as outfile: @@ -139,6 +130,25 @@ insert_anchor_links = "right" {self.resolve_note_links(note)}""" ) + with (dir / "_index.md").open(mode="w") as outfile: + contents_list = "\n1. ".join( + f"[{title}](../../{url})" for title, url in contents + ) + outfile.write( + f"""+++ +title = "{folder_title}" +weight = {counter} +sort_by = "weight" +insert_anchor_links = "right" ++++ +## Contents + +Click on a link in the list below to go to that page: + +1. {contents_list} +""" + ) + if __name__ == "__main__": print("Exporting Joplin database...") diff --git a/static/1b0f508a533e45b496c6636d49161b0c.jpg b/static/1b0f508a533e45b496c6636d49161b0c.jpg new file mode 100644 index 0000000..170b0f5 Binary files /dev/null and b/static/1b0f508a533e45b496c6636d49161b0c.jpg differ diff --git a/static/815576429ece43789dbc70dfd33517a1.jpeg b/static/815576429ece43789dbc70dfd33517a1.jpeg new file mode 100644 index 0000000..774ead3 Binary files /dev/null and b/static/815576429ece43789dbc70dfd33517a1.jpeg differ diff --git a/static/ccc7571db5d147328860077fdc0aa745.jpg b/static/ccc7571db5d147328860077fdc0aa745.jpg new file mode 100644 index 0000000..de27cc0 Binary files /dev/null and b/static/ccc7571db5d147328860077fdc0aa745.jpg differ diff --git a/static/f86da9a7aac1413ebd77825897164f7f.jpeg b/static/f86da9a7aac1413ebd77825897164f7f.jpeg new file mode 100644 index 0000000..e1fa23c Binary files /dev/null and b/static/f86da9a7aac1413ebd77825897164f7f.jpeg differ