Comments (7)
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.
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.
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.
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.
Removed in 7d08c4311c920051c95cba544a03398410ec8950
from inav.
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.
New PID controller with anti-windup works really great by itself.
from inav.
Related Issues (20)
- Flywoo F405 1s 12A AIO - inav config problem HOT 2
- INAV 7.1 automatic pilot crash / reboot mid air HOT 6
- Altitude hold mode from ground HOT 3
- Can't turn power level 5 on VTX
- Blackbox (MSC) button is not working. CONFIGURATOR 7.1.1FC FIRMWARE 7.1.2 [SPEEDYBEEF405V3] HOT 5
- Plane pithching up and down in rth mode. HOT 8
- Target for TMOTOR Velox F7 SE? HOT 1
- Analog airspeed broke in 7 update
- Abrupt change of attitude (yaw channel) HOT 5
- (VTOL) Flight timer stops in flight after switching from MC mode to FW mode when permanent FW autolaunch enabled. HOT 1
- HEQUAV G-Port Gimbal support via Serial (mavlink)
- HGLRCF 722 Mini compatibility on inav
- Blackbox field definitions update required for MAX_SUPPORTED_SERVOS = 18 HOT 1
- GPS Telemetry data not received on TX16S with SpeedyBee F405V3 / iNav 7.1.2 HOT 1
- u-blox F9 series GNSS support HOT 10
- HDZero freestyle vtx should have 4 power level options when "unlocked"
- Inav Version 7.1.2 Engines don't run after arming, despite 3D fix and pre-arm check everything is green HOT 5
- iFlight Blitz M10 GPS V2 Magnetometer doesn't work HOT 3
- H743 CPU Clock HOT 2
- Inav 8 artificial horizon not working HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inav.