Git Product home page Git Product logo

Comments (7)

digitalentity avatar digitalentity commented on July 30, 2024

As of 6ec7e15ee6676b312576a4048716d1cab98d0b98 wind compensation works and does it's job rather well. Now copter is able to quickly break from position adjustment to actual position hold. Althoug wind compensation should probably be reset when not used for a while. Need to figure the condition to do the reset.

from inav.

digitalentity avatar digitalentity commented on July 30, 2024

Windcomp behaves better than common PIDs when changing attitude. Common NAV PIDs are being reset if pilot is touching the sticks, so when poshold takes over it has to figure the wind from the start - leads to drift. Windcomp is not reset on stick input - wind is calculated in global frame, it does not change rapidly, so PIDs have to compensate only for change in wind strength, not for the wind itself. It behaves much like PID I-term, but windcomp accumulator stores only the controller output that leads to zero velocity.

Today's tests proved windcomp to be working fine - copter was able to handle 20mph wind AND do maneuvers without much position drift.

from inav.

digitalentity avatar digitalentity commented on July 30, 2024

Sometimes this causes copter to behave strange, especially when wind is gone while adjusting position. As a temporary fix I'm going to lower limit of wind compensation and add a slow decay to zero,

from inav.

digitalentity avatar digitalentity commented on July 30, 2024

Well, latest tests indicates that wind compensation does not work as expected. It actuallt tends to amplify compass mis-configuration. With poorly calibrated compass and wind-comensation disabled copter is able to maintain position, but with wind-compensation enabled it is going in circles with increasing speed.
Conclusion: Wind compensation should go.

from inav.

digitalentity avatar digitalentity commented on July 30, 2024

Removed in 7d08c4311c920051c95cba544a03398410ec8950

from inav.

digitalentity avatar digitalentity commented on July 30, 2024

I'll keep it opened but blocked for the moment. I have a hunch that windcomp might have failed due to some other reason than algorythmic flaw.

from inav.

digitalentity avatar digitalentity commented on July 30, 2024

New PID controller with anti-windup works really great by itself.

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.