inav icon indicating copy to clipboard operation
inav copied to clipboard

Inav 8 artificial horizon not working

Open P-I-Engineer opened this issue 1 year ago • 16 comments

Current Behavior

artificial horizon drift

Steps to Reproduce

fly, turn a bit, fly level, horizon is off.

Expected behavior

horizon not lag or drift

Suggested solution(s)

Additional context


version

INAV/AOCODARCF405AIO 8.0.0 Jul 17 2024 / 07:14:26 (4fa40ad0) dev GCC-13.2.1 20231009

  • FC Board name and vendor: aocoda f405 aio aos 3.5

PXL_20240720_154747143 inav_003.zip INAV_8.0.0_cli_AOS_20240719_202428.txt

P-I-Engineer avatar Jul 20 '24 19:07 P-I-Engineer

screen cap from my plane as well.

speedybeef405wing

PXL_20240720_154634244 INAV_8.0.0_cli_PENGUIN_20240719_075138.txt

P-I-Engineer avatar Jul 20 '24 19:07 P-I-Engineer

new log with all things enabled in bblog

inav_001.zip

P-I-Engineer avatar Jul 26 '24 21:07 P-I-Engineer

I didn't notice any problems the other day using a version 8 that's perhaps 3 weeks behind the master. Didn't have the AHI on the OSD but did have roll and pitch angles which behaved as expected with no offset to the horizon. I assume you're using the current master version 8.0 ?

breadoven avatar Jul 27 '24 14:07 breadoven

yes, current as of a week ago

P-I-Engineer avatar Jul 27 '24 14:07 P-I-Engineer

Can you check what ahrs_inertia_comp_method is set to? It must be set to Adaptive in Fixed wings. For some reason it seems to be set wrong after Update with DIFF.

b14ckyy avatar Jul 28 '24 17:07 b14ckyy

yes, set to adaptive

P-I-Engineer avatar Jul 28 '24 17:07 P-I-Engineer

flew quad again, with roll angle on osd, roll is lagging behind.

P-I-Engineer avatar Jul 31 '24 15:07 P-I-Engineer

vid diff included aos 3.5

https://www.youtube.com/watch?v=eRhMadvbffE

INAV_8.0.0_cli_AOS_20240801_090457.txt

P-I-Engineer avatar Aug 01 '24 16:08 P-I-Engineer

I experience similar problem, here is a video of it. https://www.youtube.com/watch?v=wqXGWZxgy7s INAV/SPEEDYBEEF405WING 8.0.0 Jun 28 2024 / 00:18:11 (60a4b714) AR Wing PRO, 1300g AUW, CG on the wing marks. Perfectly balanced prop. I use magnetometer. Looking at the logs, its values do NOT look consistent. This is the moment the plane was on a landing approach. I'm pulling the elevator at max, while the servos are kept at mid-point.... image

Here are the magnetometer data related to Gyro Pitch. I can't find a magnetometer axis that corresponds to the pitch. image

What else in the blackbox data can be examined?

tipoman9 avatar Aug 06 '24 08:08 tipoman9

Tagging @shota3527 as the matter expert here. Maybe you have an idea? ahrs_inertia_comp_method = ADAPTIVE should be fine now for both MR and Wings as it switches based on platform regarding to https://github.com/iNavFlight/inav/pull/9360

b14ckyy avatar Aug 06 '24 08:08 b14ckyy

Update from my end. I recently discovered that my Altus, I used for mLRS tests a lot the last 2 weeks and flew mostly autonomous most of the time and barely looked at the FPV feed, also had strong AHI drift. The one I thought that's not affected.

I found that accidently the Compass got reactivated during a switch back to 7.1 and then back to 8.0. It was calibrated a long time ago but its literally sitting on top of the battery wire so its very useless.

I disabled the compass for the last flights and the drift was nearly gone. I had one small occasion where there was a bit of a tilt after a hard left bank out of a right turn loiter but that might have been caused by a string wind gust from the side at the same time.

So to me it seems like enabled compass exaggerates the drift. All the settings are unchanged and 8.0 default or the same values as they where in the 7.1 presets.

b14ckyy avatar Aug 12 '24 08:08 b14ckyy

But how long does the drift last for ? I'm guessing it corrects itself relatively quickly compared to the past problems with AHI drift.

breadoven avatar Aug 12 '24 08:08 breadoven

I found that accidently the Compass got reactivated during a switch back to 7.1 and then back to 8.0. It was calibrated a long time ago but its literally sitting on top of the battery wire so its very useless

So a very wrong compass that's giving false indications of a turn seems to make it worse?

sensei-hacker avatar Aug 12 '24 08:08 sensei-hacker

@breadoven about 5 seconds until it recovered. But in that time during some test WP missions the plane sometimes already lost 10-15m of altitude after a turn before it recovered and went back to correct alt. Never had that issue on 6.x and 7.x it was more stable.

@sensei-hacker It might exaggerate it. Unfortunately the conditions where pretty different. Previous test that was so bad I had 10-25kph constant gusty wind. This time with compass off it was calm with just occasional 20kph wind bursts from thermal currents passing over. But still saw some drift now and then.

I will check the old DVRs from that plane's maiden a few months ago as that was on 7.1.2 at similar gusty wind conditions.

b14ckyy avatar Aug 12 '24 09:08 b14ckyy

AHI Drift when engaging manual mode (magnetometer on board). #10766

Tibor1111 avatar Mar 27 '25 19:03 Tibor1111