Skip to main content

Crate ardupilot_binlog

Crate ardupilot_binlog 

Source
Expand description

Parser for ArduPilot DataFlash BIN log files.

use ardupilot_binlog::Reader;
use std::io::Cursor;

let data: Vec<u8> = vec![];
let mut reader = Reader::new(Cursor::new(data));
for result in &mut reader {
    let entry = result.unwrap();
    if let Some(roll) = entry.get_f64("Roll") {
        println!("roll = {roll}");
    }
}
// Access discovered formats after iteration
println!("{} formats discovered", reader.formats().len());

Structs§

Entry
A single parsed message from a DataFlash BIN log.
File
High-level wrapper for reading a DataFlash BIN file from disk.
MessageFormat
Schema definition for a DataFlash message type, parsed from a FMT message.
Reader
Streaming parser for DataFlash BIN data.

Enums§

BinlogError
FieldValue
A decoded field value from a DataFlash log entry.