Global Mapper Pro Coming Soon

Gps Enum Values

DilysDilys Global Mapper UserPosts: 41Trusted 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_mapperglobal_mapper Administrator Posts: 17,238
    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
Sign In or Register to comment.