Skip to content

Commit

Permalink
HWDEF: correct default params file and readme for SPR H7
Browse files Browse the repository at this point in the history
  • Loading branch information
Hwurzburg authored and tridge committed Aug 30, 2022
1 parent 353aedb commit d420ba0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
22 changes: 11 additions & 11 deletions libraries/AP_HAL_ChibiOS/hwdef/SPRacingH7/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ The SPRacingH7 Extreme is a flight controller produced by [Seriously Pro Racing]
## Features

- MCU - STM32H750 32-bit processor running at 400 MHz
- 16MByte Serial NOR flash via QuadSPI
- IMUs - 2x ICM20602
- 128MByte Serial NOR flash via QuadSPI
- IMUs - 2x ICM20602 (only one enabled by default due to CPU limitations)
- Barometer - BMP388
- OSD - AT7456E
- Onboard Flash: 128Mbits
Expand All @@ -25,8 +25,8 @@ 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.

- SERIAL0 -> USB
- SERIAL1 -> UART1 (DMA-enabled)
- SERIAL2 -> UART2 (RCIN one wire, DMA-enabled)
- SERIAL1 -> UART1 (DMA-enabled) RCin
- SERIAL2 -> UART2 (SmartPort, DMA-enabled, only TX pin)
- SERIAL3 -> UART3 (DMA-enabled)
- SERIAL4 -> UART4 (DMA-enabled)
- SERIAL5 -> UART5 (DMA-enabled)
Expand All @@ -35,17 +35,17 @@ receive pin for UARTn. The Tn pin is the transmit pin for UARTn.

## RC Input

RC input is configured on the T2 (UART2_TX) pin. It supports all serial RC
RC input is configured on the R1 (UART1_RX) pin. It supports all serial RC
protocols. For protocols requiring half-duplex serial to transmit
telemetry (such as FPort) you should setup SERIAL2 as an RC input serial port,
telemetry (such as FPort) you should setup SERIAL1
with half-duplex, pin-swap and inversion enabled.

## FrSky Telemetry

FrSky Telemetry is supported using the T2 pin (UART2 transmit). You need to set the following parameters to enable support for FrSky S.PORT

- SERIAL2_PROTOCOL 10
- SERIAL2_OPTIONS 7
- SERIAL2_OPTIONS 15

## OSD Support

Expand All @@ -61,9 +61,9 @@ The PWM is in 5 groups:

- PWM 1-4 in group1
- PWM 5, 6 in group2
- PWM 7, 8 in group3
- PWM 7, 8 in group3 (can be changed to UART6 TX/RX with alt config 1)
- PWM 9, 10 in group4
- PWM 11 in group5
- PWM 11 in group5 (used for NeoPixel LED)

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
Expand All @@ -80,8 +80,8 @@ The correct battery setting parameters are:
- BATT_MONITOR 4
- BATT_VOLT_PIN 10
- BATT_CURR_PIN 11
- BATT_VOLT_MULT 11.1
- BATT_AMP_PERVLT 59.5
- BATT_VOLT_MULT 10.9
- BATT_AMP_PERVLT 28.5

## Compass

Expand Down
6 changes: 3 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/SPRacingH7/defaults.parm
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
SERVO11_FUNCTION 120
NTF_LED_TYPES 257

# setup SERIAL2 for RCIN
SERIAL2_BAUD 115
SERIAL2_OPTIONS 8
# setup SERIAL2 for SmartPort
SERIAL2_PROTOCOL 10
SERIAL2_OPTIONS 15

# currently using both IMUs is too CPU intensive
INS_ENABLE_MASK 1

0 comments on commit d420ba0

Please sign in to comment.