dynoxide

Crates.iodynoxide
lib.rsdynoxide
version0.0.1
sourcesrc
created_at2023-02-24 11:45:00.870881
updated_at2023-02-24 11:45:00.870881
descriptionRust tools for working with Dynon SkyView black box data.
homepagehttps://github.com/BWStearns/Dynoxide
repositoryhttps://github.com/BWStearns/Dynoxide
max_upload_size
id793489
size1,230,983
Brian Stearns (BWStearns)

documentation

README

Dynoxide

Still a work in progress and I will break the API in the future

Dynoxide is a utility for reading Dynon Skyview Black Box data files.

Here's an image of the KML generated from the sample blackbox data:

KML

Usage

read_csv_data takes a path to a blackbox file and returns a vector of BlackBoxTick structs. This is the really useful part of the library. The BlackBoxTick struct contains all the data from a single tick of the blackbox file, but it has 102 fields so I'm not going to list them all here. You can see the full list in the source code.

I've also added a function to output KML from the black box data. Here's a simple example of how to use the library to generate KML from a blackbox file. The output will load into Google Earth and give you a nice 3D view of your flight.

use dynoxide::*;

fn main() {
    let mut data: Vec<BlackBoxTick> = Vec::new();
    let mut rdr = csv::Reader::from_path("flight_data/first_solo_black_box.csv").unwrap();
    for result in rdr.deserialize() {
        data.push(result.unwrap());
    }
    let output_file_name = "sample_out.kml".to_string();
    generate_kml_of_flight(&output_file_name, &data);
}
// Outputs flight path to sample_out.kml
Commit count: 9

cargo fmt