Skip to content

Commit

Permalink
fix betaflight targets
Browse files Browse the repository at this point in the history
  • Loading branch information
qqqlab committed Mar 12, 2024
1 parent 58ee570 commit 0c7f7b8
Show file tree
Hide file tree
Showing 412 changed files with 824 additions and 824 deletions.
2 changes: 1 addition & 1 deletion src/boards/betaflight_target_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def fprint(txt) :
fprint( "//Include Libraries" )
fprint( "#include <Wire.h> //I2C communication" )
fprint( "#include <SPI.h> //SPI communication" )
fprint( "#include \"src/hw_STM32/STM32_PWM.h\" //Servo and oneshot" )
fprint( "#include \"madflight/hw_STM32/STM32_PWM.h\" //Servo and oneshot" )

fprint( "" )
fprint( "//Bus Setup" )
Expand Down
6 changes: 3 additions & 3 deletions src/madflight/imu/BMI270/BMI270.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class BMI270 {
BMI270_REG_PWR_CONF = 0x7C,
BMI270_REG_PWR_CTRL = 0x7D,
BMI270_REG_CMD = 0x7E,
} bmi270Register_e;
} Register_e;

// BMI270 register configuration values
typedef enum {
Expand All @@ -99,7 +99,7 @@ class BMI270 {
BMI270_VAL_FIFO_DOWNS = 0x00, // select unfiltered gyro data with no downsampling (6.4KHz samples)
BMI270_VAL_FIFO_WTM_0 = 0x06, // set the FIFO watermark level to 1 gyro sample (6 bytes)
BMI270_VAL_FIFO_WTM_1 = 0x00, // FIFO watermark MSB
} bmi270ConfigValues_e;
} ConfigValues_e;

typedef enum {
GYRO_ODR_25_HZ = 6,
Expand Down Expand Up @@ -339,7 +339,7 @@ class BMI270 {
_spi->beginTransaction(SPISettings(spi_freq, MSBFIRST, SPI_MODE3));
digitalWrite(_csPin, LOW);
_spi->transfer(0x80 | reg);
_spi->transfer(0); //dummy byte
_spi->transfer(0); //dummy byte --- BMI270 specific ---
for (uint32_t k=0; k<count; k++) {
data[k] = _spi->transfer(0);
}
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AFNG-ALIENFLIGHTF4.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.031009
Generated on: 2024-03-11 20:33:42.870150
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: ALIENFLIGHTF4
Expand Down Expand Up @@ -60,7 +60,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AFNG-ALIENFLIGHTNGF7.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.032010
Generated on: 2024-03-11 20:33:42.870150
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: ALIENFLIGHTNGF7
Expand Down Expand Up @@ -65,7 +65,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AFNG-ALIENFLIGHTNGF7_DUAL.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.033009
Generated on: 2024-03-11 20:33:42.885787
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: ALIENFLIGHTNGF7_DUAL
Expand Down Expand Up @@ -59,7 +59,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AFNG-ALIENFLIGHTNGF7_ELRS.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.035010
Generated on: 2024-03-11 20:33:42.885787
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: ALIENFLIGHTNGF7_ELRS
Expand Down Expand Up @@ -74,7 +74,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AFNG-ALIENFLIGHTNGF7_RX.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.036010
Generated on: 2024-03-11 20:33:42.885787
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: ALIENFLIGHTNGF7_RX
Expand Down Expand Up @@ -62,7 +62,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AIKO-AIKONF4.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.037018
Generated on: 2024-03-11 20:33:42.901412
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: AIKONF4
Expand Down Expand Up @@ -62,7 +62,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AIKO-AIKONF7.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.038009
Generated on: 2024-03-11 20:33:42.901412
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: AIKONF7
Expand Down Expand Up @@ -62,7 +62,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AIRB-AG3XF4.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.039043
Generated on: 2024-03-11 20:33:42.901412
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: AG3XF4
Expand Down Expand Up @@ -59,7 +59,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AIRB-AG3XF7.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.040051
Generated on: 2024-03-11 20:33:42.917037
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: AG3XF7
Expand Down Expand Up @@ -59,7 +59,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AIRB-AIRBOTF4.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.042049
Generated on: 2024-03-11 20:33:42.917037
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: AIRBOTF4
Expand Down Expand Up @@ -65,7 +65,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AIRB-AIRBOTF4SD.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.043066
Generated on: 2024-03-11 20:33:42.917037
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: AIRBOTF4SD
Expand Down Expand Up @@ -64,7 +64,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AIRB-AIRBOTF4V2.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.043066
Generated on: 2024-03-11 20:33:42.932662
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: AIRBOTF4V2
Expand Down Expand Up @@ -58,7 +58,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AIRB-AIRBOTF7.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.044050
Generated on: 2024-03-11 20:33:42.932662
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: AIRBOTF7
Expand Down Expand Up @@ -60,7 +60,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AIRB-AIRBOTF7HDV.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.045049
Generated on: 2024-03-11 20:33:42.948288
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: AIRBOTF7HDV
Expand Down Expand Up @@ -58,7 +58,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AIRB-AIRBOTG4AIO.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.046074
Generated on: 2024-03-11 20:33:42.948288
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: AIRBOTG4AIO
Expand Down Expand Up @@ -60,7 +60,7 @@ const int HW_PIN_BAT_I = PB1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AIRB-HELSEL_STRIKERF7.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.047049
Generated on: 2024-03-11 20:33:42.948288
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: HELSEL_STRIKERF7
Expand Down Expand Up @@ -57,7 +57,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AIRB-NOX.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.048052
Generated on: 2024-03-11 20:33:42.965920
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: NOX
Expand Down Expand Up @@ -61,7 +61,7 @@ const int HW_PIN_BAT_I = -1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AIRB-OMNIBUSF4.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.049049
Generated on: 2024-03-11 20:33:42.965920
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: OMNIBUSF4
Expand Down Expand Up @@ -61,7 +61,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AIRB-OMNIBUSF4FW.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.050049
Generated on: 2024-03-11 20:33:42.965920
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: OMNIBUSF4FW
Expand Down Expand Up @@ -61,7 +61,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AIRB-OMNIBUSF4NANOV7.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.051049
Generated on: 2024-03-11 20:33:42.979939
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: OMNIBUSF4NANOV7
Expand Down Expand Up @@ -58,7 +58,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AIRB-OMNIBUSF4SD.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.052059
Generated on: 2024-03-11 20:33:42.979939
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: OMNIBUSF4SD
Expand Down Expand Up @@ -60,7 +60,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
4 changes: 2 additions & 2 deletions src/madflight_board_betaflight_AIRB-OMNIBUSF4V6.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*==============================================================================
Generated on: 2024-02-19 11:58:16.053049
Generated on: 2024-03-11 20:33:42.979939
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: OMNIBUSF4V6
Expand Down Expand Up @@ -61,7 +61,7 @@ const int HW_PIN_BAT_I = PC1;
//Include Libraries
#include <Wire.h> //I2C communication
#include <SPI.h> //SPI communication
#include "src/hw_STM32/STM32_PWM.h" //Servo and oneshot
#include "madflight/hw_STM32/STM32_PWM.h" //Servo and oneshot

//Bus Setup
HardwareSerial *rcin_Serial = new HardwareSerial(HW_PIN_RCIN_RX, HW_PIN_RCIN_TX);
Expand Down
Loading

0 comments on commit 0c7f7b8

Please sign in to comment.