Skip to content

Commit

Permalink
sync betaflight
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Aug 25, 2024
1 parent 0ca29c2 commit 7008086
Show file tree
Hide file tree
Showing 29 changed files with 282 additions and 23 deletions.
2 changes: 1 addition & 1 deletion betaflight
1 change: 1 addition & 0 deletions src/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const GYRO_ANGLE_MAP = {
const MCU_MAP = {
stm32f7x2: "stm32f722",
stm32g47x: "stm32g473",
at32f435g: "at32f435",
};

function mapMCU(mcu: string) {
Expand Down
2 changes: 1 addition & 1 deletion staging/befh-betafpvf435.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: betafpvf435
manufacturer: BEFH
mcu: at32f435g
mcu: at32f435
brushless: true
leds:
- invert: true
Expand Down
2 changes: 1 addition & 1 deletion staging/bkrc-bayck_dolphin.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: bayck_dolphin
manufacturer: BKRC
mcu: at32f435g
mcu: at32f435
brushless: true
leds:
- invert: true
Expand Down
2 changes: 1 addition & 1 deletion staging/bkrc-bayck_dolphin_mini.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: bayck_dolphin_mini
manufacturer: BKRC
mcu: at32f435g
mcu: at32f435
brushless: true
leds:
- invert: true
Expand Down
61 changes: 61 additions & 0 deletions staging/brot-brotherhobbyf405v3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: brotherhobbyf405v3
manufacturer: BROT
mcu: stm32f405
brushless: true
leds:
- invert: true
pin: PC13
serial_ports:
- index: 1
rx: PA10
- index: 2
rx: PA3
tx: PA2
- index: 3
rx: PC11
tx: PC10
- index: 4
rx: PA1
tx: PA0
- index: 5
rx: PD2
tx: PC12
- index: 6
rx: PC7
tx: PC6
spi_ports:
- index: 1
miso: PA6
mosi: PA7
sck: PA5
- index: 2
miso: PB14
mosi: PB15
sck: PB13
- index: 3
miso: PB4
mosi: PB5
sck: PB3
gyro:
port: 1
nss: PA4
exti: PC4
gyro_orientation: 4
osd:
port: 2
nss: PB12
flash:
port: 3
nss: PA15
vbat: PC0
ibat: PC1
ibat_scale: 386
rgb_led: PC9
buzzer:
invert: true
pin: PC15
motor_pins:
- PB10
- PB11
- PA8
- PA9
2 changes: 1 addition & 1 deletion staging/ccrc-ccrcf435aio.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: ccrcf435aio
manufacturer: CCRC
mcu: at32f435g
mcu: at32f435
brushless: true
leds:
- invert: true
Expand Down
2 changes: 1 addition & 1 deletion staging/cust-accif435.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: accif435
manufacturer: CUST
mcu: at32f435g
mcu: at32f435
brushless: true
leds:
- invert: true
Expand Down
2 changes: 1 addition & 1 deletion staging/dafp-darwinf435.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: darwinf435
manufacturer: DAFP
mcu: at32f435g
mcu: at32f435
brushless: true
leds:
- invert: true
Expand Down
2 changes: 1 addition & 1 deletion staging/dfrc-dreamflyf722.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: dreamflyf722
manufacturer: DFRC
mcu: stm32fx2
mcu: stm32f722
brushless: true
leds:
- invert: true
Expand Down
63 changes: 63 additions & 0 deletions staging/flys-flysparkf4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: flysparkf4
manufacturer: FLYS
mcu: stm32f405
brushless: true
leds:
- invert: true
pin: PC13
serial_ports:
- index: 1
rx: PA10
tx: PA9
- index: 2
rx: PA3
tx: PA2
- index: 3
rx: PC11
tx: PC10
- index: 4
rx: PA1
tx: PA0
- index: 5
rx: PD2
- index: 6
rx: PC7
tx: PC6
spi_ports:
- index: 1
miso: PA6
mosi: PA7
sck: PA5
- index: 2
miso: PC2
mosi: PC3
sck: PB13
- index: 3
miso: PB4
mosi: PB5
sck: PB3
gyro:
port: 1
nss: PA4
exti: PC4
gyro_orientation: 4
osd:
port: 2
nss: PB12
sdcard:
port: 3
nss: PC14
vbat: PC0
ibat: PC1
ibat_scale: 400
rgb_led: PA8
sdcard_detect:
invert: true
buzzer:
invert: true
pin: PC15
motor_pins:
- PB0
- PB1
- PB6
- PB7
2 changes: 1 addition & 1 deletion staging/foss-droniusf7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ flash:
usb_detect: PA10
vbat: PC1
ibat: PC0
ibat_scale: 119
ibat_scale: 182
rgb_led: PA15
buzzer:
invert: true
Expand Down
2 changes: 1 addition & 1 deletion staging/ifrc-iflight_blitz_f435.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: iflight_blitz_f435
manufacturer: IFRC
mcu: at32f435g
mcu: at32f435
brushless: true
leds:
- invert: true
Expand Down
2 changes: 1 addition & 1 deletion staging/nerc-neutronrcf435.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: neutronrcf435
manufacturer: NERC
mcu: at32f435g
mcu: at32f435
brushless: true
leds:
- invert: true
Expand Down
2 changes: 1 addition & 1 deletion staging/nerc-neutronrcf435mini.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: neutronrcf435mini
manufacturer: NERC
mcu: at32f435g
mcu: at32f435
brushless: true
leds:
- invert: true
Expand Down
2 changes: 1 addition & 1 deletion staging/nerc-neutronrcf435se.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: neutronrcf435se
manufacturer: NERC
mcu: at32f435g
mcu: at32f435
brushless: true
leds:
- invert: true
Expand Down
64 changes: 64 additions & 0 deletions staging/orqa-orqaf7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: orqaf7
manufacturer: ORQA
mcu: stm32f722
brushless: true
leds:
- invert: true
pin: PC15
- invert: true
pin: PC14
serial_ports:
- index: 1
rx: PB7
tx: PB6
- index: 2
rx: PA3
tx: PA2
- index: 3
rx: PB11
tx: PB10
- index: 4
rx: PA1
tx: PA0
- index: 5
rx: PD2
tx: PC12
- index: 6
rx: PC7
tx: PC6
spi_ports:
- index: 1
miso: PA6
mosi: PA7
sck: PA5
- index: 2
miso: PB14
mosi: PB15
sck: PB13
- index: 3
miso: PC11
mosi: PB5
sck: PC10
gyro:
port: 1
nss: PB2
exti: PC4
osd:
port: 3
nss: PC3
flash:
port: 2
nss: PB12
usb_detect: PA10
vbat: PC0
vbat_scale: 112
ibat: PC2
ibat_scale: 108
rgb_led: PA15
buzzer:
pin: PA4
motor_pins:
- PA8
- PA9
- PC8
- PC9
59 changes: 59 additions & 0 deletions staging/rali-radiolinkf722.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: radiolinkf722
manufacturer: RALI
mcu: stm32f722
brushless: true
leds:
- invert: true
pin: PA14
serial_ports:
- index: 1
rx: PA10
tx: PA9
- index: 2
rx: PA3
tx: PA2
- index: 3
rx: PB11
tx: PB10
- index: 4
rx: PA1
- index: 6
rx: PC7
tx: PC6
spi_ports:
- index: 1
miso: PA6
mosi: PA7
sck: PA5
- index: 2
miso: PB14
mosi: PB15
sck: PB13
- index: 3
miso: PC11
mosi: PC12
sck: PC10
gyro:
port: 1
nss: PB2
exti: PC4
gyro_orientation: 16
osd:
port: 2
nss: PB12
flash:
port: 3
nss: PD2
vbat: PC2
vbat_scale: 110
ibat: PC1
ibat_scale: 490
rgb_led: PC8
buzzer:
invert: true
pin: PC13
motor_pins:
- PB4
- PB6
- PA15
- PB3
1 change: 1 addition & 0 deletions staging/turc-tunercf405.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ serial_ports:
rx: PC11
tx: PC10
- index: 4
inverter: PC14
rx: PA1
tx: PA0
- index: 5
Expand Down
1 change: 0 additions & 1 deletion targets/foxe-foxeerf722v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ osd:
flash:
port: 2
nss: PB12
fpv: PC6
vbat: PC0
ibat: PC2
rgb_led: PA15
Expand Down
1 change: 1 addition & 0 deletions targets/gepr-geprcf411.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ vbat: PB0
ibat: PB1
rgb_led: PA8
buzzer:
invert: true
pin: PB2
motor_pins:
- PB6
Expand Down
Loading

0 comments on commit 7008086

Please sign in to comment.