Skip to content

Commit 01c3505

Browse files
committed
IMPROVEMENT: lint the markdown files
1 parent d668657 commit 01c3505

14 files changed

+92
-34
lines changed

.markdownlint.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
default: true
3+
line-length: false
4+
fix: true
5+
no-trailing-punctuation: false
6+
no-inline-html:
7+
enabled: false
8+
MD013:
9+
line_length: 500
10+
code_blocks: false
11+
tables: false
12+
headers: false
13+
MD033:
14+
allowed_elements:
15+
- "span"
16+
- "i"
17+
- "a"
18+
- "b"
19+
- "br"
20+
- "caption"
21+
- "figure"
22+
- "img"
23+
- "ins"
24+
- "table"
25+
- "td"
26+
- "th"
27+
- "tr"

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,22 @@ repos:
4141
]
4242
stages: [pre-push]
4343

44+
- repo: https://github.com/gruntwork-io/pre-commit
45+
rev: v0.1.24
46+
hooks:
47+
- id: shellcheck
48+
entry: C:\\Windows\\System32\\wsl.exe --exec bash -c "find . -type f \( -name '*.sh' -o -name '*.bash' \) ! -name 'get-helm-3.bash' -print0 | xargs -0 printf '%q ' | xargs shellcheck --color=never"
49+
files: \.bash$
50+
- id: markdown-link-check
51+
language: system
52+
entry: markdown-link-check
53+
54+
- repo: https://github.com/igorshubovych/markdownlint-cli
55+
rev: v0.43.0
56+
hooks:
57+
- id: markdownlint
58+
args: ['--config', '.markdownlint.yaml', '--ignore', 'MD025']
59+
4460
# - repo: https://github.com/RobertCraigie/pyright-python
4561
# rev: v1.1.389
4662
# hooks:

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Contributing
1+
# How to contribute to the ArduPilot Methodic Configurator project?
22
<!--
33
SPDX-FileCopyrightText: 2024 Amilcar do Carmo Lucas <[email protected]>
44
55
SPDX-License-Identifier: GPL-3.0-or-later
66
-->
77

8-
## How to contribute to the ArduPilot Methodic Configurator project?
8+
<!-- markdownlint-disable MD025 -->
99

1010
If you are reading this page, you are possibly interested in contributing to our project.
1111
We have a very active (and friendly) developer group and would love to have the help!

LICENSE.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
GNU GENERAL PUBLIC LICENSE
2-
Version 3, 29 June 2007
1+
# GNU GENERAL PUBLIC LICENSE
2+
3+
## Version 3, 29 June 2007
4+
5+
<!-- markdownlint-disable MD029 -->
36

47
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
58
Everyone is permitted to copy and distribute verbatim copies
@@ -653,11 +656,11 @@ Also add information on how to contact you by electronic and paper mail.
653656
notice like this when it starts in an interactive mode:
654657

655658
<program> Copyright (C) <year> <name of author>
656-
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
659+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w`.
657660
This is free software, and you are welcome to redistribute it
658-
under certain conditions; type `show c' for details.
661+
under certain conditions; type `show c` for details.
659662

660-
The hypothetical commands `show w' and `show c' should show the appropriate
663+
The hypothetical commands `show w` and `show c` should show the appropriate
661664
parts of the General Public License. Of course, your program's commands
662665
might be different; for a GUI interface, you would use an "about box".
663666

QUICKSTART.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ To methodically build, configure and tune ArduPilot vehicles follow this sequenc
1515

1616
### 1.1 Select the vehicle components
1717

18-
- while [choosing an Autopilot](https://ardupilot.org/copter/docs/common-autopilots.html) and [other hardware](https://ardupilot.org/copter/docs/common-optional-hardware.html) components [avoid these components](https://discuss.ardupilot.org/t/hardware-to-avoid-when-building-your-first-multirotor/114014/1)
18+
- while [choosing an Autopilot](https://ardupilot.org/copter/docs/common-autopilots.html) and
19+
[other hardware](https://ardupilot.org/copter/docs/common-optional-hardware.html) components
20+
[avoid these components](https://discuss.ardupilot.org/t/hardware-to-avoid-when-building-your-first-multirotor/114014/1)
1921
- Use [ecalc for multirotor](https://www.ecalc.ch/index.htm) to select the propulsion system.
2022
- follow [hardware best practices](TUNING_GUIDE_ArduCopter.md#11-multicopter-hardware-best-practices)
2123

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ SPDX-License-Identifier: GPL-3.0-or-later
1313
| [![mypy](https://github.com/ArduPilot/MethodicConfigurator/actions/workflows/mypy.yml/badge.svg)](https://github.com/ArduPilot/MethodicConfigurator/actions/workflows/mypy.yml) | [![Known Vulnerabilities](https://snyk.io/test/github/amilcarlucas/MethodicConfigurator/badge.svg)](https://snyk.io/test/github/amilcarlucas/MethodicConfigurator) | [![codecov](https://codecov.io/github/amilcarlucas/MethodicConfigurator/graph/badge.svg?token=76P928EOL2)](https://codecov.io/github/amilcarlucas/MethodicConfigurator) | [![Windows Build](https://github.com/ArduPilot/MethodicConfigurator/actions/workflows/windows_build.yml/badge.svg)](https://github.com/ArduPilot/MethodicConfigurator/actions/workflows/windows_build.yml) | |
1414
| | [![Code Climate](https://codeclimate.com/github/amilcarlucas/MethodicConfigurator.png)](https://codeclimate.com/github/amilcarlucas/MethodicConfigurator) | [![Coverity Scan Build Status](https://scan.coverity.com/projects/30346/badge.svg)](https://scan.coverity.com/projects/ardupilot-methodic-configurator) | | |
1515

16-
Amilcar Lucas's ArduPilot Methodic Configurator is a software that semi-automates a [clear, proven and safe configuration sequence for ArduCopter drones](https://ardupilot.github.io/MethodicConfigurator/TUNING_GUIDE_ArduCopter).
16+
Amilcar Lucas's ArduPilot Methodic Configurator is a software that semi-automates a
17+
[clear, proven and safe configuration sequence for ArduCopter drones](https://ardupilot.github.io/MethodicConfigurator/TUNING_GUIDE_ArduCopter).
1718

1819
- **clear**: the sequence is linear, executed one step at the time with no hidden complex dependencies
1920
- **proven**: the software has been used by hundreds of ArduPilot developers and users. From beginners to advanced. On big and small vehicles.
@@ -25,7 +26,9 @@ It provides a graphical user interface (GUI) for managing and visualizing ArduPi
2526

2627
![Application Screenshot](https://github.com/ArduPilot/MethodicConfigurator/blob/master/images/App_screenshot1.png?raw=true)
2728

28-
We are working on extending it to [ArduPlane](https://ardupilot.github.io/MethodicConfigurator/TUNING_GUIDE_ArduPlane), [Heli](https://ardupilot.github.io/MethodicConfigurator/TUNING_GUIDE_Heli) and [Rover](https://ardupilot.github.io/MethodicConfigurator/TUNING_GUIDE_Rover) vehicles.
29+
We are working on extending it to [ArduPlane](https://ardupilot.github.io/MethodicConfigurator/TUNING_GUIDE_ArduPlane),
30+
[Heli](https://ardupilot.github.io/MethodicConfigurator/TUNING_GUIDE_Heli) and
31+
[Rover](https://ardupilot.github.io/MethodicConfigurator/TUNING_GUIDE_Rover) vehicles.
2932
But for those it is still very incomplete.
3033

3134
## Usage
@@ -80,11 +83,14 @@ cd MethodicConfigurator
8083

8184
## Support and Contributing
8285

83-
Please feel free to submit [issues](https://github.com/ArduPilot/MethodicConfigurator/issues) or [pull requests](https://github.com/ArduPilot/MethodicConfigurator/pulls). More information is available on the [contributing and support](https://github.com/ArduPilot/MethodicConfigurator/blob/master/CONTRIBUTING.md) page.
86+
Please feel free to submit [issues](https://github.com/ArduPilot/MethodicConfigurator/issues) or
87+
[pull requests](https://github.com/ArduPilot/MethodicConfigurator/pulls).
88+
More information is available on the [contributing and support](https://github.com/ArduPilot/MethodicConfigurator/blob/master/CONTRIBUTING.md) page.
8489

8590
## Software architecture
8691

87-
To meet the [Software requirements](https://ardupilot.github.io/MethodicConfigurator/ARCHITECTURE.html#software-requirements) a [software architecture](https://ardupilot.github.io/MethodicConfigurator/ARCHITECTURE.html#the-software-architecture) was designed and implemented.
92+
To meet the [Software requirements](https://ardupilot.github.io/MethodicConfigurator/ARCHITECTURE.html#software-requirements) a
93+
[software architecture](https://ardupilot.github.io/MethodicConfigurator/ARCHITECTURE.html#the-software-architecture) was designed and implemented.
8894

8995
## Code of conduct
9096

TUNING_GUIDE_ArduCopter.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ SPDX-FileCopyrightText: 2024 Amilcar do Carmo Lucas <[email protected]>
55
SPDX-License-Identifier: GPL-3.0-or-later
66
-->
77

8+
<!-- markdownlint-disable MD013 MD025 MD034 -->
9+
810
![Cinewhoop Diatone Taycan MX-C](images/blog/cinewhoop.png)
911

1012
For illustrative purposes, we will use the small 3'' multicopter depicted above, but the tuning sequence we developed at [IAV GmbH](https://www.iav.com/) will work on almost any other multicopter.
@@ -203,7 +205,6 @@ The figure excludes the LiPo battery and the PM02 BEC with a voltage/current mon
203205

204206
![Matek H743, Holobro F9p, T-Motor F45 4in1 ESC and TBS Crossfire Nano rx se connections](images/blog/matek_h743_schaltplan.png)
205207

206-
207208
# 6. Basic mandatory configuration
208209

209210
## 6.1 Configure flight controller orientation
@@ -1047,10 +1048,10 @@ In this case, it is:
10471048

10481049
> max_accel = 4.2 [m/s²]
10491050
1050-
With the air density at the time of testing and the previously calculated ballistic drag coefficient (`EK3_DRAG_BCOEF_X` for front and back, `EK3_DRAG_BCOEF_Y` for left and right side) you can now calculate the bluff body drag, which is 1/2 * air density * airspeed^2 / BCOEF.
1051+
With the air density at the time of testing and the previously calculated ballistic drag coefficient (`EK3_DRAG_BCOEF_X` for front and back, `EK3_DRAG_BCOEF_Y` for left and right side) you can now calculate the bluff body drag, which is 1/2 \* air density \* airspeed^2 / BCOEF.
10511052
In this case, it is:
10521053

1053-
> Bluff body drag = 0.5 * 1.260 [kg/m³] * (6.25 [m/s])² / 38.4798 [kg/m²] = 0.6395 [m/s²]
1054+
> Bluff body drag = 0.5 \* 1.260 [kg/m³] \* (6.25 [m/s])² / 38.4798 [kg/m²] = 0.6395 [m/s²]
10541055
10551056
With that, you can now calculate the momentum drag, which is max_accel - bluff body drag.
10561057
In this case, it is:

TUNING_GUIDE_ArduPlane.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ SPDX-FileCopyrightText: 2024 Amilcar do Carmo Lucas <[email protected]>
55
SPDX-License-Identifier: GPL-3.0-or-later
66
-->
77

8+
<!-- markdownlint-disable MD013 MD025 MD034 -->
9+
810
![Cinewhoop Diatone Taycan MX-C](images/blog/cinewhoop.png)
911

1012
For illustrative purposes, we will use the small 3'' multicopter depicted above, but the tuning sequence we developed at [IAV GmbH](https://www.iav.com/) will work on almost any other multicopter.
@@ -203,7 +205,6 @@ The figure excludes the LiPo battery and the PM02 BEC with a voltage/current mon
203205

204206
![Matek H743, Holobro F9p, T-Motor F45 4in1 ESC and TBS Crossfire Nano rx se connections](images/blog/matek_h743_schaltplan.png)
205207

206-
207208
# 6. Basic mandatory configuration
208209

209210
## 6.1 Configure flight controller orientation
@@ -1043,10 +1044,10 @@ In this case, it is:
10431044

10441045
> max_accel = 4.2 [m/s²]
10451046
1046-
With the air density at the time of testing and the previously calculated ballistic drag coefficient (`EK3_DRAG_BCOEF_X` for front and back, `EK3_DRAG_BCOEF_Y` for left and right side) you can now calculate the bluff body drag, which is 1/2 * air density * airspeed^2 / BCOEF.
1047+
With the air density at the time of testing and the previously calculated ballistic drag coefficient (`EK3_DRAG_BCOEF_X` for front and back, `EK3_DRAG_BCOEF_Y` for left and right side) you can now calculate the bluff body drag, which is 1/2 \* air density \* airspeed^2 / BCOEF.
10471048
In this case, it is:
10481049

1049-
> Bluff body drag = 0.5 * 1.260 [kg/m³] * (6.25 [m/s])² / 38.4798 [kg/m²] = 0.6395 [m/s²]
1050+
> Bluff body drag = 0.5 \* 1.260 [kg/m³] \* (6.25 [m/s])² / 38.4798 [kg/m²] = 0.6395 [m/s²]
10501051
10511052
With that, you can now calculate the momentum drag, which is max_accel - bluff body drag.
10521053
In this case, it is:

TUNING_GUIDE_Heli.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ SPDX-FileCopyrightText: 2024 Amilcar do Carmo Lucas <[email protected]>
55
SPDX-License-Identifier: GPL-3.0-or-later
66
-->
77

8+
<!-- markdownlint-disable MD013 MD025 MD034 -->
9+
810
![Cinewhoop Diatone Taycan MX-C](images/blog/cinewhoop.png)
911

1012
For illustrative purposes, we will use the small 3'' multicopter depicted above, but the tuning sequence we developed at [IAV GmbH](https://www.iav.com/) will work on almost any other multicopter.
@@ -23,7 +25,7 @@ You will be able to tune multiple vehicles (think production line) using this me
2325
4. [Perform IMU temperature calibration before assembling the autopilot into the vehicle](#4-perform-imu-temperature-calibration-before-assembling-the-autopilot-into-the-vehicle-optional) (optional)
2426
5. [Assemble all components except the propellers](#5-assemble-all-components-except-the-propellers)
2527
6. [Basic mandatory configuration](#6-basic-mandatory-configuration)
26-
7. [Assemble propellers and perform the first flight](#7-assemble-propellers-and-perform-the-first-flight)
28+
7. [Install rotor blades and perform the first flight](#7-install-rotor-blades-and-perform-the-first-flight)
2729
8. [Minimalistic mandatory tuning](#8-minimalistic-mandatory-tuning)
2830
9. [Standard tuning](#9-standard-tuning-optional) (optional)
2931
10. [Improve altitude under windy conditions](#10-improve-altitude-under-windy-conditions-optional) (optional)
@@ -181,7 +183,7 @@ After the calibration, temperature changes will cause no significant acceleromet
181183

182184
Now that the optional IMU temperature calibration is done we must assemble and connect all components except the propellers.
183185

184-
Read the [Helicopter hardware best-practices](#11-Helicopter-hardware-best-practices) section again before assembling the vehicle.
186+
Read the [Helicopter hardware best-practices](#11-helicopter-hardware-best-practices) section again before assembling the vehicle.
185187

186188
If you changed the way the components are connected to the flight controller (FC), re-enter the updated information into ArduPilot Methodic Configurator [component editor window](USERMANUAL.md#vehicle-component-editor-interface).
187189

@@ -202,7 +204,6 @@ The figure excludes the LiPo battery and the PM02 BEC with a voltage/current mon
202204

203205
![Insert Heli example of connections](images/blog/matek_h743_schaltplan.png)
204206

205-
206207
# 6. Basic mandatory configuration
207208

208209
## 6.1 Configure flight controller orientation
@@ -511,8 +512,6 @@ The table below explains which bit is responsible for which `.bin` dataflash log
511512
<tr><td>WINC</td><td>Winch</td><td>10Hz</td><td>Any</td><td>any</td><td>any</td></tr>
512513
</table>
513514

514-
515-
516515
## 6.14 Optional PID adjustment (not sure how this applies to helicopters)
517516

518517
If you have a very small, or a very large vehicle that requires non-default PID values for a safe flight.
@@ -988,10 +987,10 @@ In this case, it is:
988987

989988
> max_accel = 4.2 [m/s²]
990989
991-
With the air density at the time of testing and the previously calculated ballistic drag coefficient (`EK3_DRAG_BCOEF_X` for front and back, `EK3_DRAG_BCOEF_Y` for left and right side) you can now calculate the bluff body drag, which is 1/2 * air density * airspeed^2 / BCOEF.
990+
With the air density at the time of testing and the previously calculated ballistic drag coefficient (`EK3_DRAG_BCOEF_X` for front and back, `EK3_DRAG_BCOEF_Y` for left and right side) you can now calculate the bluff body drag, which is 1/2 \* air density \* airspeed^2 / BCOEF.
992991
In this case, it is:
993992

994-
> Bluff body drag = 0.5 * 1.260 [kg/m³] * (6.25 [m/s])² / 38.4798 [kg/m²] = 0.6395 [m/s²]
993+
> Bluff body drag = 0.5 \* 1.260 [kg/m³] \* (6.25 [m/s])² / 38.4798 [kg/m²] = 0.6395 [m/s²]
995994
996995
With that, you can now calculate the momentum drag, which is max_accel - bluff body drag.
997996
In this case, it is:

TUNING_GUIDE_Rover.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ SPDX-FileCopyrightText: 2024 Amilcar do Carmo Lucas <[email protected]>
55
SPDX-License-Identifier: GPL-3.0-or-later
66
-->
77

8+
<!-- markdownlint-disable MD013 MD025 MD034 -->
9+
810
![Cinewhoop Diatone Taycan MX-C](images/blog/cinewhoop.png)
911

1012
For illustrative purposes, we will use the small 3'' multicopter depicted above, but the tuning sequence we developed at [IAV GmbH](https://www.iav.com/) will work on almost any other multicopter.
@@ -203,7 +205,6 @@ The figure excludes the LiPo battery and the PM02 BEC with a voltage/current mon
203205

204206
![Matek H743, Holobro F9p, T-Motor F45 4in1 ESC and TBS Crossfire Nano rx se connections](images/blog/matek_h743_schaltplan.png)
205207

206-
207208
# 6. Basic mandatory configuration
208209

209210
## 6.1 Configure flight controller orientation
@@ -1043,10 +1044,10 @@ In this case, it is:
10431044

10441045
> max_accel = 4.2 [m/s²]
10451046
1046-
With the air density at the time of testing and the previously calculated ballistic drag coefficient (`EK3_DRAG_BCOEF_X` for front and back, `EK3_DRAG_BCOEF_Y` for left and right side) you can now calculate the bluff body drag, which is 1/2 * air density * airspeed^2 / BCOEF.
1047+
With the air density at the time of testing and the previously calculated ballistic drag coefficient (`EK3_DRAG_BCOEF_X` for front and back, `EK3_DRAG_BCOEF_Y` for left and right side) you can now calculate the bluff body drag, which is 1/2 \* air density \* airspeed^2 / BCOEF.
10471048
In this case, it is:
10481049

1049-
> Bluff body drag = 0.5 * 1.260 [kg/m³] * (6.25 [m/s])² / 38.4798 [kg/m²] = 0.6395 [m/s²]
1050+
> Bluff body drag = 0.5 \* 1.260 [kg/m³] \* (6.25 [m/s])² / 38.4798 [kg/m²] = 0.6395 [m/s²]
10501051
10511052
With that, you can now calculate the momentum drag, which is max_accel - bluff body drag.
10521053
In this case, it is:

0 commit comments

Comments
 (0)