forked from PX4/PX4-Autopilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EKF: move python tuning tools to EKF module
- Loading branch information
Showing
6 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
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]) | ||
|
5 changes: 5 additions & 0 deletions
5
src/modules/ekf2/EKF/python/tuning_tools/baro_static_pressure_compensation/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.