Git Product home page Git Product logo

Comments (5)

digitalentity avatar digitalentity commented on July 30, 2024

current:
text data bss dec hex filename
118204 224 14156 132584 205e8 ./obj/main/cleanflight_NAZE.elf

with Madgwick AHRS
arm-none-eabi-size ./obj/main/cleanflight_NAZE.elf
text data bss dec hex filename
122212 220 14160 136592 21590 ./obj/main/cleanflight_NAZE.elf

Madgwick's AHRS took almost 4kb flash! I'll try see if it works better than complementary filter.

from inav.

digitalentity avatar digitalentity commented on July 30, 2024

Bench tests show that with Madgwick's AHRS heading is much more locked in (when using a compass). I've noticed that after a series of fast pitch-roll rotations complementary filter showed arbitrary heading and took half a second to correct using a compass. Using very same settings and same test Madgwicks AHRS was totally locked in.
But nothing comes without a price - for this I'm paying with extra 4k flash and lots of CPU cycles. When using complementary I was able to get looptime=1000, using AHRS I got only as low as looptime=1400. CPU is spending alot of time calculating AHRS.
Need to try it in-flight and see if it's worth it.

from inav.

digitalentity avatar digitalentity commented on July 30, 2024

Just tried to fly it - much worse than plain old complementary filter. HORIZON mode is very slow to react, copter feels mushy. That's probably due to incorrect beta used. Postponing this for now.

from inav.

bk79 avatar bk79 commented on July 30, 2024

Have you tried slowing loop time? Probably it could help

Il giorno 00:18 mar 04/ago/2015 Konstantin Sharlaimov <
[email protected]> ha scritto:

Just tried to fly it - much worse than plain old complementary filter.
HORIZON mode is very slow to react, copter feels mushy. That's probably due
to incorrect beta used. Postponing this for now.


Reply to this email directly or view it on GitHub
https://github.com/digitalentity/cleanflight/issues/30#issuecomment-127420372
.

from inav.

digitalentity avatar digitalentity commented on July 30, 2024

I'm closing this as new NAV PID controllers seem to be doing their job pretty good with current IMU. Will re-open if still necessary.

from inav.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.