Skip to content

Add Add 'log download sync' command' - sync bin logs to aircraft dir - #1746

Open
fredgaffey wants to merge 1 commit into
ArduPilot:masterfrom
fredgaffey:sync_bin_logs_to_aircraft_dir
Open

fredgaffey wants to merge 1 commit into
ArduPilot:masterfrom
fredgaffey:sync_bin_logs_to_aircraft_dir

Conversation

@fredgaffey

Copy link
Copy Markdown
Contributor

Adding command log download sync this will sync the latest bin log to the right flight if you are using the --aircraft flag.

Testing ran it in sitl see below.

$ sim_vehicle.py -v ArduCopter --aircraft my_plane
Log Directory: my_plane/logs/2026-09-07/flight2
Telemetry log: my_plane/logs/2026-09-07/flight2/flight.tlog
AP: ArduCopter V4.8.0-dev (0c8333a9)
STABILIZE> Mode STABILIZE

STABILIZE> arm throttle
Got COMMAND_ACK: COMPONENT_ARM_DISARM: ACCEPTED
AP: Arming motors
ARMED

STABILIZE> disarm
Got COMMAND_ACK: COMPONENT_ARM_DISARM: ACCEPTED
AP: Disarming motors
AP: Field Elevation Set: 584m
DISARMED

STABILIZE> log list
Requesting log list
Log 1 numLogs 1 lastLog 1 size 630784 Mon Sep 7 15:04:01 2026

STABILIZE> log download sync
Downloading log 1 as my_plane/logs/2026-09-07/flight2/log1.bin
Finished downloading my_plane/logs/2026-09-07/flight2/log1.bin (1290240 bytes 2.5 seconds, 522.6 kbyte/sec 1 retries)

$ tree my_plane
my_plane
└── logs
└── 2026-09-07
├── flight1
│ ├── flight.tlog
│ └── flight.tlog.raw
└── flight2
├── defaults.parm
├── flight.tlog
├── flight.tlog.raw
├── log1.bin
└── mav.parm

5 directories, 7 files

@fredgaffey
fredgaffey force-pushed the sync_bin_logs_to_aircraft_dir branch from af6d7b2 to 72ab288 Compare September 28, 2026 09:53

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant