Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gyro-alignment details #501

Merged
merged 3 commits into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion docs/development/manufacturer/creating-configuration.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# How to Create a Flight Controller Configuration File for Betaflight 4.5
# How to Create a Flight Controller Configuration File for Betaflight

Under construction.

Expand Down Expand Up @@ -169,6 +169,33 @@ When the microcontroller is asleep and in a low power mode, though, the UART per

:::

### Gyro Alignment Settings

Gyro alignment configuration is mutual exclusive.

Default we use #define `USE_GYRO_1_ALIGN` `ALIGNMENT`

where `ALIGNMENT` preset is one of
```bash
CW0_DEG
CW90_DEG
CW180_DEG
CW270_DEG
CW0_DEG_FLIP
CW90_DEG_FLIP
CW180_DEG_FLIP
CW270_DEG_FLIP
ALIGN_CUSTOM
```

When using `ALIGN_CUSTOM` specify orientation in `DECIDEGREES` ranging from -3600-3600:

```
#define ALIGN_1_GYRO_ROLL DECIDEGREES
#define ALIGN_1_GYRO_PITCH DECIDEGREES
#define ALIGN_1_GYRO_ROLL DECIDEGREES
```

### Serial Receiver Provider

BNF boards may want to configure the serial receiver provider on the flight controller. Example:
Expand Down
Loading