Global Mapper v26.0

Gps Enum Values

Dilys
Dilys Global Mapper UserTrusted User
edited May 2008 in SDK
How to find the constant values for the GPS in ENUM
EG
// Format for GPS connection
typedef uint8 GM_gps_format_t8; enum
{
GM_GPS_FORMAT_AUTODETECT,
GM_GPS_FORMAT_NMEA,
GM_GPS_FORMAT_GARMIN,

GM_GPS_NUM_FORMAT_TYPES
};

DILYS

Comments

  • global_mapper
    global_mapper Administrator
    edited May 2008
    Dilys,

    In C/C++ all unspecified enumerations always start at 0, so GM_GPS_FORMAT_AUTODETECT has a value of 0, GM_GPS_FORMAT_NMEA is 1, and GM_GPS_FORMAT_GARMIN is 2.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com