/*==============================================================================
Generated on: 2025-06-11 20:35:54.079121
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: UAVPNG030MINI
Manufacturer ID: NGUA

//copy this line to madflight.ino to use this flight controller
#define MF_BOARD "brd/betaflight/NGUA-UAVPNG030MINI.h"

Note: madflight will pick the last sensor defined here, this might not be the sensor that is actually on the board. Comment the offending sensors out, or use madflight_config to override.
==============================================================================*/

#define MF_BOARD_NAME "BETAFLIGHT-NGUA-UAVPNG030MINI"
#define MF_MCU_NAME "STM32F405"

const char madflight_board[] = R""(
imu_bus_type SPI
imu_gizmo MPU6000 // #define USE_GYRO_SPI_MPU6000
// resource BEEPER 1 B00
pin_out0 PA8 // resource MOTOR 1 A08
pin_out1 PE11 // resource MOTOR 2 E11
pin_out2 PE13 // resource MOTOR 3 E13
pin_out3 PE14 // resource MOTOR 4 E14
pin_out4 PB5 // resource MOTOR 5 B05
pin_out5 PD13 // resource MOTOR 6 D13
pin_out6 PD14 // resource MOTOR 7 D14
pin_out7 PD15 // resource MOTOR 8 D15
pin_rcl_ppm PA2 // resource PPM 1 A02
pin_ser0_tx PB6 // resource SERIAL_TX 1 B06
pin_ser1_tx PD5 // resource SERIAL_TX 2 D05
pin_ser2_tx PD8 // resource SERIAL_TX 3 D08
pin_ser5_tx PC7 // resource SERIAL_TX 6 C07
pin_ser0_rx PB7 // resource SERIAL_RX 1 B07
pin_ser1_rx PD6 // resource SERIAL_RX 2 D06
pin_ser2_rx PD9 // resource SERIAL_RX 3 D09
pin_ser5_rx PC6 // resource SERIAL_RX 6 C06
pin_i2c0_scl PB8 // resource I2C_SCL 1 B08
pin_i2c1_scl PB10 // resource I2C_SCL 2 B10
pin_i2c0_sda PB9 // resource I2C_SDA 1 B09
pin_i2c1_sda PB11 // resource I2C_SDA 2 B11
pin_led PE5 // resource LED 1 E05
// resource LED 2 E07
// resource LED 3 E06
pin_spi0_sclk PA5 // resource SPI_SCK 1 A05
pin_spi0_miso PA6 // resource SPI_MISO 1 A06
pin_spi0_mosi PA7 // resource SPI_MOSI 1 A07
// resource ESCSERIAL 1 A02
pin_bat_v PC1 // resource ADC_BATT 1 C01
bat_gizmo ADC
// resource BARO_CS 1 E01
// resource COMPASS_EXTI 1 E12
pin_imu_int PE0 // resource GYRO_EXTI 1 E00
pin_imu_cs PA4 // resource GYRO_CS 1 A04
// set mag_bustype = I2C
mag_i2c_bus 1 // set mag_i2c_device = 2
// set baro_spi_device = 1
// set battery_meter = ADC
// set beeper_inversion = ON
// set beeper_od = OFF
// set system_hse_mhz = 8
// set dashboard_i2c_bus = 2
// set gyro_1_bustype = SPI
imu_spi_bus 0 // set gyro_1_spibus = 1
imu_align CW180 // set gyro_1_sensor_align = CW180
// set gyro_1_align_yaw = 1800
)""; //end of madflight_board


/*
#==============================================================================
# BetaFlight Source file
#==============================================================================
# Betaflight / STM32F405 (S405) 4.2.0 Feb  2 2020 / 16:57:58 (norevision) MSP API: 1.43

#define USE_GYRO
#define USE_GYRO_SPI_MPU6000
#define USE_ACC
#define USE_ACC_SPI_MPU6000

board_name UAVPNG030MINI
manufacturer_id NGUA

# resources
resource BEEPER 1 B00
resource MOTOR 1 A08
resource MOTOR 2 E11
resource MOTOR 3 E13
resource MOTOR 4 E14
resource MOTOR 5 B05
resource MOTOR 6 D13
resource MOTOR 7 D14
resource MOTOR 8 D15
resource PPM 1 A02
resource SERIAL_TX 1 B06
resource SERIAL_TX 2 D05
resource SERIAL_TX 3 D08
resource SERIAL_TX 6 C07
resource SERIAL_RX 1 B07
resource SERIAL_RX 2 D06
resource SERIAL_RX 3 D09
resource SERIAL_RX 6 C06
resource I2C_SCL 1 B08
resource I2C_SCL 2 B10
resource I2C_SDA 1 B09
resource I2C_SDA 2 B11
resource LED 1 E05
resource LED 2 E07
resource LED 3 E06
resource SPI_SCK 1 A05
resource SPI_MISO 1 A06
resource SPI_MOSI 1 A07
resource ESCSERIAL 1 A02
resource ADC_BATT 1 C01
resource BARO_CS 1 E01
resource COMPASS_EXTI 1 E12
resource GYRO_EXTI 1 E00
resource GYRO_CS 1 A04

# timer
timer E11 AF1
# pin E11: TIM1 CH2 (AF1)
timer E13 AF1
# pin E13: TIM1 CH3 (AF1)
timer E14 AF1
# pin E14: TIM1 CH4 (AF1)
timer D13 AF2
# pin D13: TIM4 CH2 (AF2)
timer D14 AF2
# pin D14: TIM4 CH3 (AF2)
timer D15 AF2
# pin D15: TIM4 CH4 (AF2)

# dma
dma ADC 1 1
# ADC 1: DMA2 Stream 4 Channel 0
dma pin E11 0
# pin E11: DMA2 Stream 6 Channel 0
dma pin E13 0
# pin E13: DMA2 Stream 6 Channel 0
dma pin E14 0
# pin E14: DMA2 Stream 4 Channel 6
dma pin D13 0
# pin D13: DMA1 Stream 3 Channel 2
dma pin D14 0
# pin D14: DMA1 Stream 7 Channel 2

# master
set mag_bustype = I2C
set mag_i2c_device = 2
set baro_spi_device = 1
set battery_meter = ADC
set beeper_inversion = ON
set beeper_od = OFF
set system_hse_mhz = 8
set dashboard_i2c_bus = 2
set gyro_1_bustype = SPI
set gyro_1_spibus = 1
set gyro_1_sensor_align = CW180
set gyro_1_align_yaw = 1800

*/
