use crate::binrw_util;
use alloc::vec::Vec;
use binrw::binrw;
#[binrw]
#[derive(Clone, Debug)]
pub struct GALGstGps {
#[br(map = binrw_util::map_u4)]
#[bw(map = binrw_util::unmap_u4)]
pub tow: Option<u32>,
#[br(map = binrw_util::map_u2)]
#[bw(map = binrw_util::unmap_u2)]
pub wnc: Option<u16>,
pub svid: u8,
pub source: u8,
pub a_1g: f32,
pub a_0g: f32,
pub t_og: u32,
pub wn_og: u8,
#[br(parse_with = binrw::helpers::until_eof)]
pub padding: Vec<u8>,
}
impl GALGstGps {
pub const SOURCE_INAV: u8 = 2;
pub const SOURCE_FNAV: u8 = 16;
}