#gps #data #uart #read #module #parity

gps_data_collector_kim

A GPS crate that read the data from a gps module

1 unstable release

0.1.0 Sep 30, 2020

#38 in #uart

MIT license

6KB
117 lines

rust_template

This is a template repository for Mech_1 class in RU


lib.rs:

##Examples


use gps_data_collector_kim
use rpi_embedded::uart::{Uart, Parity};

fn main() {
let mut gps1 = MyGps::new();

let mut uart = Uart::new(gps1.baud_rate as u32, Parity::None, 8, 1).unwrap();

let data = uart.read_until('\n').unwrap();
gps1.read_gpgga(data);
gps1.print_gpgga();
}

Dependencies

~375KB