mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
EKF: move python tuning tools to EKF module
This commit is contained in:
parent
49bc5082e7
commit
e9c07fac6f
@ -29,10 +29,12 @@
|
||||
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
File: pcoef_tuning.py
|
||||
File: baro_static_pressure_compensation_tuning.py
|
||||
Author: Mathieu Bresciani <mathieu@auterion.com>
|
||||
License: BSD 3-Clause
|
||||
Description:
|
||||
Tune the coefficients used to compensate for
|
||||
dynamic pressure disturbances on the barometer
|
||||
NOTE: this script currently assumes no wind.
|
||||
"""
|
||||
|
||||
@ -188,7 +190,7 @@ def run(logfile):
|
||||
|
||||
# Plot data
|
||||
plt.figure(1)
|
||||
plt.suptitle(f"Report of pcoef_tuning.py {logfile.split('/')[-1]}")
|
||||
plt.suptitle(f"Report of baro_static_pressure_compensation.py {logfile.split('/')[-1]}")
|
||||
ax1 = plt.subplot(3, 1, 1)
|
||||
ax1.set_title(f"PCoef_xn = {pcoef_xn:.3f}, PCoef_xp = {pcoef_xp:.3f}\nPCoef_yn = {pcoef_yn:.3f}, PCoef_yp = {pcoef_yp:.3f}, PCoef_z = {pcoef_z:.3f}")
|
||||
ax1.plot(t, baro-baro[0])
|
||||
@ -0,0 +1,5 @@
|
||||
matplotlib==3.5.1
|
||||
numpy==1.22.2
|
||||
pyulog==0.9.0
|
||||
quaternion==3.5.2.post4
|
||||
scipy==1.8.0
|
||||
Loading…
x
Reference in New Issue
Block a user