This commit is contained in:
Stavros Korokithakis 2021-01-01 15:50:38 +02:00
parent 9d95653a09
commit c95ec31c6b
No known key found for this signature in database
GPG Key ID: 26EA345ECD4C2A63

View File

@ -6,7 +6,6 @@ insert_anchor_links = "right"
+++
Here are some general INAV tuning tips and things I've learned throughout my builds. Keep in mind that *these only apply to wings* (and maybe planes), not quads:
* There's a known problem with horizon drift. To ameliorate it, use `set imu_acc_ignore_rate = 10`. Setting this low is a good idea, but if it's set too low then the accelerometer will effectively be ignored and the horizon will eventually drift. To reduce the accelerometer's influence, you can also reduce `imu_dcm_ki`/`imu_dcm_kp`.
* To make turns in automatic modes smoother, use `set nav_fw_control_smoothness = 8`.
* Pawel says that the idea of the software LPF is to replace the hardware LPF. Leave the hardware LPF set to 256 Hz and set the software LPF to 20-30 Hz, with a looptime of 1k.
@ -24,6 +23,14 @@ More details can be found in the [battery page](https://notes.stavros.io/drone-s
_(Thanks to Michel Pastor in the INAV Telegram group for this tip.)_
## Horizon drift issues
There's a known problem with horizon drift on fixed wings. To ameliorate it, use `set imu_acc_ignore_rate = 10`. Setting this low is a good idea, but if it's set too low then the accelerometer will effectively be ignored and the horizon will eventually drift. To reduce the accelerometer's influence, you can also reduce `imu_dcm_ki` and/or `imu_dcm_kp`.
You can also try tuning `fw_turn_assist_pitch_gain`, although be careful to not set it too high because then the aircraft will stall trying to climb during a turn.
Adding a piece of black, porous foam (so wind can pass through) over the barometer has been known to help as well.
* * *
*Last updated on December 30, 2020.*
*Last updated on January 01, 2021.*