Skip to content

Commit

Permalink
EKF: move python tuning tools to EKF module
Browse files Browse the repository at this point in the history
  • Loading branch information
bresch committed Apr 21, 2022
1 parent 49bc508 commit e9c07fa
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""

Expand Down Expand Up @@ -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])
Expand Down
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.

0 comments on commit e9c07fa

Please sign in to comment.