Repository navigation
Conversation
The V2 runs on FLYWOOF722PRO, whose pins all match, but that target cannot use what the V2 adds: an LSM6DSK320X as the alternative to the ICM-42688-P, a second IMU on CS PB2 of the same bus, and a DPS310 as its only barometer, as Betaflight's FLYWOOF722PROV2 config has them. Building only the DPS310 also keeps AUTO from taking this board's DPS310, at 0x76, for an SPL06.
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by QodoAdd Flywoo GOKU F722 Pro V2 firmware target
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1. Upgrades without erasing lose the gyro
|
|
Test firmware build ready — commit Download firmware for PR #12112 2 targets built. Find your board's
|
|
RAM / Flash usage vs. base commit
None of the representative targets (MATEKF405, MATEKF722, MATEKF765, MATEKH743) were built by this PR — no size comparison to show. See RAM/flash optimization guide for techniques to reduce usage. |
The F722 Pro V2 runs today on
FLYWOOF722PRO, whose pins all match it, but that target cannot see what the V2 adds over the V1: Betaflight'sFLYWOOF722PROV2config lists an LSM6DSK320X as the alternative to the ICM-42688-P, a footprint for a second IMU on the same SPI bus, and the DPS310 as its only barometer driver.What changes
FLYWOOF722PROV2as a variant in theFLYWOOF722PROfolder, the V1 target unchanged:ICM42605driver) or LSM6DSK320X (LSM6DXXdriver), both CW270 as in Betaflight's config. The V1's MPU6000 and BMI270 options are left out.USE_DUAL_GYRO:gyro_to_use = 1selects it, andgyro_secondary_enabledlogs it.baro_hardware = AUTOfrom taking the chip, at 0x76, for an SPL06, which happens on targets that build both drivers: the SPL06 driver reads this board's baro about 26 °C too warm.Moving a V2 from FLYWOOF722PRO
A V2 that runs
FLYWOOF722PROtoday needs its settings reset when it moves to this target: flash with full chip erase, or rundefaultsafter flashing.USE_DUAL_GYROaddsgyro_to_useto the gyro settings, so a record saved byFLYWOOF722PROloads shifted. On the test board, flashed with the settings kept, it showed GYRO and ACC unavailable,gyro_to_use = 60and SETTINGFAIL untildefaults. The layout differs between the two targets, not between versions, so there is no PG version to bump.Tested
FLYWOOF722PROV2uses 479,947 B of flash (97.6 %), 92,752 B of RAM and 11,424 B of ITCM.FLYWOOF722PRObuilds to the same sizes as before the change (482,455 B flash, 92,800 B RAM, 11,600 B ITCM): its code is untouched, only wrapped in#ifdef.versionreportsFLYWOOF722PROV2.status: GYRO and ACC ICM42605, BARO DPS310 withbaro_hardware = AUTO, 16 MB flash, OSD MAX7456, GPS on UART5, 50 I2C errors at boot as on the V1 target.FLYWOOF722PROgives 8.0°.gyro_secondary_enabled = ONwith no second IMU: boots, status unchanged.gyro_to_use = 1: the gyro shows as unavailable and everything else keeps working; back to 0, it is normal again.Not tested, no hardware: the LSM6DSK320X variant, a populated second IMU and the Puya flash. With the LSM6DSK320X the gyro runs at 8 kHz, as on DAKEFPVF722, and its CW270 alignment is the one Betaflight uses for both chips. The data-ready pins, PC3 for the first IMU and PC4 for the second as in Betaflight's config, are left out: they belong with my open data-ready PRs. #12065 and #12067 merge cleanly with this one but give PC3 to
FLYWOOF722PROonly, and #12066 conflicts with it intarget.candtarget.h; whichever lands second, this PR or those, adds the V2's pins. If you have a V2 with the LSM6DSK320X or a second IMU,statusand the Sensors tab after flashing would tell.