Conversation
Branch Targeting SuggestionYou've targeted the
If This is an automated suggestion to help route contributions to the appropriate branch. |
Review Summary by QodoAdd SOLOGOODF722 flight controller target support
WalkthroughsDescription• Add SOLOGOODF722 flight controller target with STM32F722 MCU • Configure 8 PWM outputs with timer hardware definitions • Support multiple IMU sensors (MPU6000, BMI270, ICM42605) • Enable OSD, barometer, magnetometer, and rangefinder support • Configure 6 UART ports with CRSF receiver default Diagramflowchart LR
A["SOLOGOODF722 Target"] --> B["STM32F722 MCU"]
A --> C["Timer Hardware"]
A --> D["Sensors & Peripherals"]
C --> E["8 PWM Outputs"]
D --> F["IMU: MPU6000/BMI270/ICM42605"]
D --> G["OSD, Baro, Mag, Rangefinder"]
D --> H["6 UART Ports"]
D --> I["SPI Flash & ADC"]
File Changes1. src/main/target/SOLOGOODF722/target.h
|
Code Review by Qodo
1. Duplicate macro defines
|
| #define MAX_PWM_OUTPUT_PORTS 8 | ||
| #define USE_SERIAL_4WAY_BLHELI_INTERFACE | ||
| #define USE_DSHOT | ||
| #define USE_ESC_SENSOR | ||
| #define CURRENT_METER_SCALE 250 | ||
|
|
||
| #define TARGET_IO_PORTA 0xffff | ||
| #define TARGET_IO_PORTB 0xffff | ||
| #define TARGET_IO_PORTC 0xffff | ||
| #define TARGET_IO_PORTD 0xffff | ||
| #define TARGET_IO_PORTE 0xffff | ||
| #define TARGET_IO_PORTF 0xffff | ||
|
|
||
| #define MAX_PWM_OUTPUT_PORTS 8 | ||
|
|
||
| #define USE_DSHOT | ||
| #define USE_ESC_SENSOR |
There was a problem hiding this comment.
1. Duplicate macro defines 🐞 Bug ⛯ Reliability
target.h redefines MAX_PWM_OUTPUT_PORTS, USE_DSHOT, and USE_ESC_SENSOR. This is error-prone and can fail builds under WARNINGS_AS_ERRORS due to macro redefinition warnings.
Agent Prompt
## Issue description
`src/main/target/SOLOGOODF722/target.h` contains duplicated macro definitions (`MAX_PWM_OUTPUT_PORTS`, `USE_DSHOT`, `USE_ESC_SENSOR`). This is easy to miss during edits and may break builds when warnings are treated as errors.
## Issue Context
The file currently defines these macros twice in the same header.
## Fix Focus Areas
- src/main/target/SOLOGOODF722/target.h[161-177]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
eab90dd to
4f29a1c
Compare
Summary
Added Sologood F722 target.
Changes
src/main/target/SOLOGOODF722/CMakeLists.txt
src/main/target/SOLOGOODF722/target.h
src/main/target/SOLOGOODF722/target.c
Notes
Tested UART1 (Walksnail Avatar OSD), UART2 (RX), UART6 and SPI (gps+magnitometer), S1-S6 (by spinning 4 motors, 2 servos), Gyroscope, Accelerometer, Barometer.
Used betaflight timers configuration:
Betaflight resources: