{"id":19215242,"url":"https://github.com/sashgorokhov/mavlog2csv","last_synced_at":"2025-11-14T08:03:25.259Z","repository":{"id":195869990,"uuid":"693788568","full_name":"sashgorokhov/mavlog2csv","owner":"sashgorokhov","description":"Convert ardupilot telemetry/dataflash log into csv with selected columns","archived":false,"fork":false,"pushed_at":"2023-09-19T23:59:40.000Z","size":33,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-04T18:24:49.812Z","etag":null,"topics":["ardupilot","blackbox","dataflash","telemetry"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sashgorokhov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-19T18:01:30.000Z","updated_at":"2024-04-22T11:49:41.000Z","dependencies_parsed_at":"2023-09-20T00:09:00.386Z","dependency_job_id":null,"html_url":"https://github.com/sashgorokhov/mavlog2csv","commit_stats":null,"previous_names":["sashgorokhov/mavlog2csv"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashgorokhov%2Fmavlog2csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashgorokhov%2Fmavlog2csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashgorokhov%2Fmavlog2csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashgorokhov%2Fmavlog2csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sashgorokhov","download_url":"https://codeload.github.com/sashgorokhov/mavlog2csv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240289552,"owners_count":19777896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ardupilot","blackbox","dataflash","telemetry"],"created_at":"2024-11-09T14:13:06.792Z","updated_at":"2025-11-14T08:03:20.235Z","avatar_url":"https://github.com/sashgorokhov.png","language":"Python","readme":"# mavlog2csv\n\n[![Test and build](https://github.com/sashgorokhov/mavlog2csv/actions/workflows/test_and_build.yml/badge.svg?branch=main)](https://github.com/sashgorokhov/mavlog2csv/actions/workflows/test_and_build.yml)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n![GitHub last commit (branch)](https://img.shields.io/github/last-commit/sashgorokhov/mavlog2csv/main)\n\nSimple python script that converts ardupilot log into csv. You can specify required telemetry values.\nTested with `.bin` files, will most probably work with `.log` files.\nYou can even try to specify linux device or comport!\n\n\u003e Mission planner telemetry logs are stored in `Documents\\Mission Planner\\logs`\n\nI used https://github.com/ArduPilot/pymavlink/blob/master/tools/mavlogdump.py as reference on how to work with telemetry log files.\n\nThis script is fully typed and tested. This repository has pre-commit hooks setup and and github actions CI, which builds windows `.exe` on every commit into `main`.\n\n## Usage\nAlways refer to `--help`.\n\n```text\nusage: mavlog2csv.py [-h] [-o OUTPUT] -c COL [--skip-n-arms SKIP_N_ARMS] input\n\npositional arguments:\n  input                 Input file name.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -o OUTPUT, --output OUTPUT\n                        Output file name. If not set, script will output into stdout.\n  -c COL, --col COL     Specify telemetry columns to output. Format: \u003cMessage type\u003e.\u003cColumn\u003e. For example: GPS.Lng\n  --skip-n-arms SKIP_N_ARMS\n                        If there are multiple arm events in the log, skip this number of arms before writing any rows at all. If you setup to log only after autopilot was armed, then first arm event wont be stored in the log.\n```\n\n### Examples\n\n```shell\npython mavlog2csv.py -c GPS.Lat -c GPS.Lng \"log.bin\"\n\n\"TimeUS\",\"TimeS\",\"Date\",\"Time\",\"GPS.Lat\",\"GPS.Lng\"\n\"1411152456\",\"1411.15\",\"2023-09-17\",\"13:54:04.960011\",\"30.532045399999998\",\"-97.6290581\"\n...\n```\n\nOutput GPS Longitude and latitude and airspeed sensor readings\n```shell\npython mavlog2csv.py -c GPS.Lng -c GPS.Lat -c ARSP.Airspeed -o output.csv \"2023-09-17 13-34-16.bin\"\n```\n\nThis snippet I find especially useful\n```shell\nmavlog2csv.exe -c GPS.Lat -c GPS.Lng -c ARSP.Airspeed -c POS.RelHomeAlt -c ATT.Roll -c ATT.Pitch -c ATT.Yaw -c BAT.Volt -c BAT.Cur -c GPS.GCrs -c GPS.VZ -c AETR.Thr -o \"C:\\Users\\Alexander\\Desktop\\parsed.csv\" \"C:\\Users\\Alexander\\Documents\\Mission Planner\\logs\\FIXED_WING\\1\\2023-09-17 13-34-16.bin\"\n```\n\n## Installation\n\nFor windows users, this repository offers an all-in-one `.exe`. You can download it [here](https://github.com/sashgorokhov/mavlog2csv/releases/download/latest/mavlog2csv.exe).\n\nUsage\n```shell\nmavlog2csv.exe --help\n```\n\n### Feeling brave?\n```shell\npip install pip install https://github.com/sashgorokhov/mavlog2csv/archive/refs/heads/main.zip\nmavlog2csv --help\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsashgorokhov%2Fmavlog2csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsashgorokhov%2Fmavlog2csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsashgorokhov%2Fmavlog2csv/lists"}