package nmea

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
exception Invalid_sentence
type mag_var = float * Coord.ew
type gpgga = {
  1. time : float;
  2. coord : Coord.t;
  3. quality : int;
  4. sat_n : int;
  5. hdop : float;
  6. alt : float;
  7. geoid_height : float;
  8. station_id : string;
}
type gpgll = {
  1. time : float;
  2. coord : Coord.t;
  3. status : bool;
}
type gprmc = {
  1. time : float;
  2. coord : Coord.t;
  3. sog : float;
  4. cmg : float;
  5. mag_var : mag_var;
  6. status : bool;
}
type sat = {
  1. prn : int;
  2. elev_dgr : int;
  3. azimuth : int;
  4. snr_db : int;
}
type gpgsv = {
  1. msg_n : int;
  2. msg_i : int;
  3. sv_n : int;
  4. sats : sat list;
}
type gpgsa = {
  1. auto : bool;
  2. fix : int;
  3. prns : int list;
  4. pdop : float;
  5. hdop : float;
  6. vdop : float;
}
type t =
  1. | GPGLL of gpgll
  2. | GPGGA of gpgga
  3. | GPRMC of gprmc
  4. | GPGSV of gpgsv
  5. | GPGSA of gpgsa
    (*

    sentence type

    *)
val to_string : t -> string

to_string s returns an human readable string for the given sentence

val time_to_unix : int -> float

time_to_unix t transforms nmea time format to unixtime

val datetime_to_unix : int -> int -> float

datetime_to_unix d t transforms nmea datetime format to unixtime

OCaml

Innovation. Community. Security.