Read, analyze and visualize *.bin flight data logs recorded by ArduPilot
Project description
MAVdataflash
Read, analyze and visualize *.bin flight data logs recorded by ArduPilot
Installation
Installing via PyPI
Install the latest version with:
$ pip install --upgrade MAVdataflash
Installing via GitHub
Install directly from the source code:
$ pip install https://github.com/generalaeronautics/MAVdataflash/archive/refs/heads/latest.zip
If you have git installed, you can also try:
$ pip install git+https://github.com/generalaeronautics/MAVdataflash.git
You can also install by cloning or downloading the repo:
$ git clone https://github.com/generalaeronautics/MAVdataflash
$ cd MAVdataflash
$ pip install .
If you get any installation or compilation errors, make sure you have the latest pip and setuptools::
$ pip install --upgrade pip setuptools
Usage
from MAVdataflash import DataFlash
# Create a new instance with DataFlash class
analysis = DataFlash("flight_data.bin")
# Return data in pandas dataframe
analysis.GetData('IMU')
# Return data of specific instance in pandas dataframe
analysis.GetData('IMU', instance=1)
# Return data in polars dataframe
analysis.GetData('IMU', in_polars=True)
# Plot any Parameter and Subparameter VS Time
analysis.Plot('GPS', 'Alt')
# Plot with instance, if parameter data type has more than 1 instance
analysis.Plot('IMU', 'GyrX', instance=1)
# Return the pandas dataframe of EV(Events) data type with Message
analysis.GetEvents()
# Return in polars dataframe
analysis.GetEvents(in_polars=True)
# Return the pandas dataframe of MODE(Modes) data type with Message
analysis.GetModes()
# Return in polars dataframe
analysis.GetModes(in_polars=True)
# Return the pandas dataframe of PARM(Commands) with Values
analysis.GetPARAMS()
# Return Params in dictionary data type
analysis.GetPARAMS(in_dict=True)
# Return in polars dataframe
analysis.GetPARAMS(in_polars=True)
# Return PARM(Command) with Value
analysis.GetPARAM('EK3_IMU_MASK')
# Return the list of Subparameter(Columns) of the Parameter data type
analysis.GetColumns('GPS')
# Return True if Parameter data type is plottable otherwise return as False
analysis.isPlotable('GPS')
analysis.isPlotable('GPS', column='Alt')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
MAVdataflash-2.4.5.tar.gz
(18.9 kB
view details)
Built Distribution
File details
Details for the file MAVdataflash-2.4.5.tar.gz
.
File metadata
- Download URL: MAVdataflash-2.4.5.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b66e10c42c0650c628f78e36603387abc36f30118dfd425516e974b099a1a16e |
|
MD5 | c84efe610f67af87228855e29d1048d4 |
|
BLAKE2b-256 | 23f5b8ad53e7409e495248c11e592310e7d623e6649dba5c5e14820bd8401d42 |
File details
Details for the file MAVdataflash-2.4.5-py3-none-any.whl
.
File metadata
- Download URL: MAVdataflash-2.4.5-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6e5ceda1371d0409da12cfccc252ccadb6bc55544e69842c550c0b8f2952498 |
|
MD5 | 85890806df8205865fbfef1a8230bcf3 |
|
BLAKE2b-256 | fb2e53c5c1ace2576393a2cbe097874856b2468b1fe29ac8843869c2e52e5564 |