iNavFlight / inav

INAV: Navigation-enabled flight control software
https://inavflight.github.io
GNU General Public License v3.0
3.19k stars 1.49k forks source link

Target KAKUTEF4V2 ver 3.0.1 (and 3.0.0) gyro not detected. #7235

Closed konstantinfpv closed 3 years ago

konstantinfpv commented 3 years ago

Wrong gyro in hex? INAV don't work on Holybro Kakute F4 v2 mini.

1.Flash KAKUTEF4V2 ver 3.0.1

  1. Reset to default
  2. GYRO/ACC not detected

Expected behavior

I expect MPU6000 work properly

Suggested solution(s)

Betaflight target KAKUTEF4V2 works, but Emuflight has the same bug as INAV, maybe something wrong in INAV hex? EmuFlight tried to do a fast solution by giving me Flywoo f405 target with MPU6000 gyro, gyro begin to work but motor mapping was wrong and 1 motor doesn't spin.

Additional context

status

System Uptime: 559 seconds Current Time: 2041-06-28T01:04:00.000+00:00 Voltage: 0.00V (1S battery - NOT PRESENT) CPU Clock=168MHz, BARO=BMP280 STM32 system clocks: SYSCLK = 168 MHz HCLK = 168 MHz PCLK1 = 42 MHz PCLK2 = 84 MHz Sensor status: GYRO=UNAVAILABLE, ACC=UNAVAILABLE, MAG=NONE, BARO=OK, RANGEFINDER=NONE, OPFLOW=NONE, GPS=NONE Stack size: 6144, Stack address: 0x10010000, Heap available: 2048 I2C Errors: 0, config size: 7193, max available config: 131072 ADC channel usage: BATTERY : configured = ADC 1, used = none RSSI : configured = ADC 3, used = none CURRENT : configured = ADC 2, used = none AIRSPEED : configured = none, used = none System load: 8, cycle time: 1002, PID rate: 998, RX rate: 49, System rate: 9 Arming disabled flags: ANGLE CAL HWFAIL RX CLI VTX: not detected

version

INAV/KAKUTEF4V2 3.0.1 Jul 4 2021 / 14:01:51 (753c4479) GCC-9.3.1 20200408 (release) -->

JoachimF commented 3 years ago

Same problem here, betaflight 4.2.9 is OK

DzikuVx commented 3 years ago

Potential fix in #7258 @konstantinfpv @JoachimF please test with provided hex, I do not have hardware to test inav_3.1.0_KAKUTEF4V2.hex.zip

konstantinfpv commented 3 years ago

Potential fix in #7258 @konstantinfpv @JoachimF please test with provided hex, I do not have hardware to test inav_3.1.0_KAKUTEF4V2.hex.zip

2021-07-13 @ 13:56:22 -- Running - OS: Windows, Chrome: 87.0.4280.141, Configurator: 3.0.1

2021-07-13 @ 13:56:23 -- Loaded release information from GitHub.

2021-07-13 @ 13:59:08 -- Serial port successfully opened with ID: 5

2021-07-13 @ 13:59:09 -- MultiWii API version received - 2.4.0

2021-07-13 @ 13:59:09 -- Flight controller info, identifier: INAV, version: 3.1.0

2021-07-13 @ 13:59:09 -- This firmware version is not supported. This version of Configurator supports firmware from 3.0.0 to 3.1.0 (excluded)

It flashed but the configurator doesn't want to work with it? Should I use an older version of the configurator?

avsaase commented 3 years ago

@konstantinfpv you can get a build from the current master branch here: http://seyrsnys.myzen.co.uk/inav-configurator-next/

JoachimF commented 3 years ago

Mounted on quad 6", tested with configurator 3.1.

Seems to be ok for me, gyro respond, acc respond, baro respond, gps and mag respond. Motors run

The baro is not defined by default,

I have to finish the quad to test it in flight.

Thanks for your help

status

System Uptime: 17 seconds Current Time: 2041-06-28T02:04:00.000+01:00 Voltage: 11.38V (3S battery - OK) CPU Clock=168MHz, GYRO=MPU6000, ACC=MPU6000, BARO=BMP280, MAG=QMC5883 STM32 system clocks: SYSCLK = 168 MHz HCLK = 168 MHz PCLK1 = 42 MHz PCLK2 = 84 MHz Sensor status: GYRO=OK, ACC=OK, MAG=OK, BARO=OK, RANGEFINDER=NONE, OPFLOW=NONE, GPS=OK Stack size: 6144, Stack address: 0x10010000, Heap available: 1728 I2C Errors: 0, config size: 7287, max available config: 131072 ADC channel usage: BATTERY : configured = ADC 1, used = ADC 1 RSSI : configured = ADC 3, used = none CURRENT : configured = ADC 2, used = ADC 2 AIRSPEED : configured = none, used = none System load: 10, cycle time: 508, PID rate: 1968, RX rate: 49, System rate: 9 Arming disabled flags: CAL COMPASS ACC RX CLI VTX: band: R, chan: 1, power: 1 (25 mW), freq: 5658 MHz

konstantinfpv commented 3 years ago

Same here. Nice gift for my 36th birthday! Ill config tonight and run the first flight tomorrow.

version INAV/KAKUTEF4V2 3.1.0 Jul 13 2021 / 12:06:14 (8dd4571e) GCC-9.3.1 20200408 (release)

status System Uptime: 89 seconds Current Time: 2041-06-28T01:04:00.000+00:00 Voltage: 0.00V (1S battery - NOT PRESENT) CPU Clock=168MHz, GYRO=MPU6000, ACC=MPU6000, BARO=BMP280 STM32 system clocks: SYSCLK = 168 MHz HCLK = 168 MHz PCLK1 = 42 MHz PCLK2 = 84 MHz Sensor status: GYRO=OK, ACC=OK, MAG=NONE, BARO=OK, RANGEFINDER=NONE, OPFLOW=NONE, GPS=NONE Stack size: 6144, Stack address: 0x10010000, Heap available: 2028 I2C Errors: 0, config size: 7287, max available config: 131072 ADC channel usage: BATTERY : configured = ADC 1, used = none RSSI : configured = ADC 3, used = none CURRENT : configured = ADC 2, used = none AIRSPEED : configured = none, used = none System load: 6, cycle time: 502, PID rate: 1992, RX rate: 49, System rate: 9 Arming disabled flags: ACC RX CLI VTX: not detected

DzikuVx commented 3 years ago

Apparently Kakute changed from MPU6500 to MPU6000