-
Notifications
You must be signed in to change notification settings - Fork 18.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AP_HAL_ChibiOS: support bi-dir dshot and ELRS on Flywoo F405S AIO
- Loading branch information
1 parent
be8a380
commit 8a3ed0b
Showing
3 changed files
with
129 additions
and
17 deletions.
There are no files selected for viewing
103 changes: 103 additions & 0 deletions
103
libraries/AP_HAL_ChibiOS/hwdef/FlywooF405S-AIO/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
# GOKU F405 1-2S 12A AIO w/ built-in ELRS 2.4g RX | ||
|
||
https://flywoo.net/collections/aio-evo-stacks-combo/products/goku-versatile-f405-2s-12a-aio-w-build-in-elrs-2-4g-rx-mpu6000 | ||
|
||
The Flywoo GOKU F405 AIO is a flight controller produced by [Flywoo](https://flywoo.net/). | ||
|
||
## Features | ||
|
||
- MCU: STM32F405 32-bit processor. 1024Kbytes Flash | ||
- IMU: MPU6000 (SPI) | ||
- Barometer: BMP280 | ||
- Onboard LED:WS2812*2 | ||
- USB VCP Driver (all UARTs usable simultaneously; USB does not take up a UART) | ||
- 6 hardware UARTS (UART1,2,3,4,5,6) | ||
- Built-in ELRS 2.4Ghz serial receiver | ||
- Also supports external serial receivers (SBUS, iBus, Spektrum, Crossfire) | ||
- Onbord 8Mbytes for Blackbox logging | ||
- 5V Power Out: 2.0A max | ||
- Dimensions: 30x30mm | ||
- Mounting Holes: Standard 25.5/26.5mm square to center of holes | ||
- Weight: 8.5g | ||
|
||
- Built-in 12A BLHeli_S 4in1 ESC | ||
- Supports BLheli_S / BlueJay / J-ESC | ||
- Supports Oneshot125, Oneshot42, Multishot, Dshot150, Dshot300, Dshot600 | ||
- Input Voltage: 1-2S Lipo | ||
- Continuous Current: 12A | ||
- Firmware: Z_H_30_REV16.7 | ||
|
||
## Pinout | ||
|
||
 | ||
|
||
## UART Mapping | ||
|
||
The UARTs are marked Rn and Tn in the above pinouts. The Rn pin is the | ||
receive pin for UARTn. The Tn pin is the transmit pin for UARTn. | ||
|Name|Pin|Function| | ||
|:-|:-|:-| | ||
|SERIAL0|COMPUTER|USB| | ||
|SERIAL1|RX1/TX1|USART1 (ELRS, DMA-enabled)| | ||
|SERIAL2|TX2/RX2|USART2 (GPS, DMA on RX)| | ||
|SERIAL3|TX3/RX3|USART3 (RC Input/Output, DMA-enabled)| | ||
|SERIAL4|TX4/RX4|UART4 (TELEM)| | ||
|SERIAL5|TX5/RX5|UART5| | ||
|SERIAL6|TX6/RX6|UART6 (VTX)| | ||
|
||
USART1 and USART3 supports RX and TX DMA. UART4 supports TX DMA. USART2 supports RX DMA. UART5 and UART6 do not support DMA. | ||
|
||
## RC Input | ||
|
||
RC input is configured on UART1 or UART3, which supports serial RC protocols. This board does not support PPM. | ||
|
||
## OSD Support | ||
|
||
The GOKU F405 AIO supports OSD using OSD_TYPE 1 (MAX7456 driver). | ||
|
||
## PWM Output | ||
|
||
The GOKU F405 AIO supports up to 5 PWM outputs. The pads for motor output ESC1 to ESC4 on the above diagram are the first 4 outputs.All 5 outputs support DShot. | ||
|
||
The PWM are in 3 groups: | ||
|
||
PWM 1-2: Group 1 | ||
PWM 3-4: Group 2 | ||
LED: Group 3 | ||
|
||
Channels within the same group need to use the same output rate. If | ||
any channel in a group uses DShot then all channels in the group need | ||
to use DShot. PWM 1-4 support bidirectional dshot. | ||
|
||
## Battery Monitoring | ||
|
||
The board has a builtin voltage sensor. The voltage sensor can handle 2S to 6S | ||
LiPo batteries. | ||
|
||
The correct battery setting parameters are: | ||
|
||
- BATT_MONITOR 4 | ||
- BATT_VOLT_PIN 12 | ||
- BATT_VOLT_MULT around 11 | ||
- BATT_CURR_PIN 13 | ||
- BATT_CURR_MULT around 60.2 | ||
|
||
These are set by default in the firmware and shouldn't need to be adjusted | ||
|
||
## Compass | ||
|
||
The GOKU F405 AIO does not have a builtin compass but it does have an external I2C connector. | ||
|
||
## NeoPixel LED | ||
|
||
The board includes a NeoPixel LED pad. | ||
|
||
## Loading Firmware (you will need to compile your own firmware) | ||
|
||
Initial firmware load can be done with DFU by plugging in USB with the | ||
bootloader button pressed. Then you should load the "with_bl.hex" | ||
firmware, using your favourite DFU loading tool. | ||
|
||
Once the initial firmware is loaded you can update the firmware using | ||
any ArduPilot ground station software. Updates should be done with the | ||
*.apj firmware files. |
11 changes: 11 additions & 0 deletions
11
libraries/AP_HAL_ChibiOS/hwdef/FlywooF405S-AIO/defaults.parm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# setup for LEDs on chan9 | ||
SERVO5_FUNCTION 120 | ||
NTF_LED_TYPES 257 | ||
NTF_LED_LEN 2 | ||
# ESC setup | ||
MOT_PWM_TYPE 6 | ||
SERVO_BLH_AUTO 1 | ||
SERVO_BLH_TRATE 0 | ||
# RC setup | ||
RC_OPTIONS 8704 | ||
SERIAL1_PROTOCOL 23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters