ublox 0.10.0

A crate to communicate with u-blox GPS devices using the UBX protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use ublox::{cfg_msg::CfgMsgSinglePortBuilder, nav_pos_llh::NavPosLlh, nav_status::NavStatus};

#[test]
fn test_cfg_msg_simple() {
    assert_eq!(
        [0xb5, 0x62, 0x06, 0x01, 0x03, 0x00, 0x01, 0x02, 0x01, 0x0E, 0x47],
        CfgMsgSinglePortBuilder::set_rate_for::<NavPosLlh>(1).into_packet_bytes()
    );

    assert_eq!(
        [0xb5, 0x62, 0x06, 0x01, 0x03, 0x00, 0x01, 0x03, 0x01, 0x0F, 0x49],
        CfgMsgSinglePortBuilder::set_rate_for::<NavStatus>(1).into_packet_bytes()
    );
}