Add Add 'log download sync' command' - sync bin logs to aircraft dir - #1746
Open
fredgaffey wants to merge 1 commit into
Open
fredgaffey wants to merge 1 commit into
fredgaffey wants to merge 1 commit into
Conversation
fredgaffey
force-pushed
the
sync_bin_logs_to_aircraft_dir
branch
from
September 28, 2026 09:53
af6d7b2 to
72ab288
Compare
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding command
log download syncthis 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