Import initial du projet shipheart_appli
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
//**********************************************************************************************************************************************************************************
|
||||
// Fichier NMEA.H
|
||||
//
|
||||
// Contient tous les define liés au réseau NMEA
|
||||
//
|
||||
//**********************************************************************************************************************************************************************************/
|
||||
|
||||
// Maximums :
|
||||
#define NMEA_MAX_NOMBRE_PGN 250
|
||||
#define NMEA_MAX_TAILLE_DATA_PGN 223 // C'est la taille maxi des DATA d'un Fast Packet
|
||||
// #define NMEA_MAX_NOMBRE_PGN_ACTIFS 50
|
||||
|
||||
// Tempos :
|
||||
#define NMEA_TEMPO_INIT 10 // En x 100ms
|
||||
#define NMEA_PERIODE_CHECK 5 // EN x 100ms
|
||||
|
||||
|
||||
// Type de PGN :
|
||||
#define NMEA_PGN_TYPE_INCONNU -1
|
||||
#define NMEA_PGN_TYPE_SYSTEM_SINGLE_FRAME 0
|
||||
#define NMEA_PGN_TYPE_SYSTEM_FAST_PACKET 1
|
||||
#define NMEA_PGN_TYPE_DEFAULT_SINGLE_FRAME 2
|
||||
#define NMEA_PGN_TYPE_MANDATORY_FAST_PACKET 3
|
||||
#define NMEA_PGN_TYPE_DEFAULT_FAST_PACKET 4
|
||||
#define NMEA_PGN_TYPE_PROPRIETARY_FAST_PACKET 5
|
||||
|
||||
|
||||
// Mode de parse des PGN :
|
||||
#define NMEA_PARSE_MODE_CREATION 0
|
||||
#define NMEA_PARSE_MODE_MISE_A_JOUR 1
|
||||
#define NMEA_PARSE_MODE_SUPPRESSION 2
|
||||
|
||||
|
||||
// Fields de PGN :
|
||||
#define NMEA_126992_TIME_SOURCE 2
|
||||
// #define NMEA_126992_RESERVED 3
|
||||
#define NMEA_126992_SYSTEM_DATE 4
|
||||
#define NMEA_126992_SYSTEM_TIME 5
|
||||
|
||||
#define NMEA_129029_DAYS_SINCE_1970 2
|
||||
#define NMEA_129029_SECONDS_SINCE_MIDNIGHT 3
|
||||
#define NMEA_129029_LATITUDE 4
|
||||
#define NMEA_129029_LONGITUDE 5
|
||||
#define NMEA_129029_ALTITUDE 6
|
||||
#define NMEA_129029_GNSS_TYPE 7
|
||||
#define NMEA_129029_GNSS_METHOD 8
|
||||
//#define NMEA_129029_RESERVED 9
|
||||
#define NMEA_129029_SATELLITES_NUMBER 11
|
||||
#define NMEA_129029_HDOP 12
|
||||
#define NMEA_129029_PDOP 13
|
||||
|
||||
#define NMEA_129540_SATELLITES_IN_VIEW 4
|
||||
|
||||
#define NMEA_130306_WIND_SPEED_TRUE_NORTH 20
|
||||
#define NMEA_130306_WIND_ANGLE_TRUE_NORTH 30
|
||||
#define NMEA_130306_WIND_SPEED_MAGNETIC 21
|
||||
#define NMEA_130306_WIND_ANGLE_MAGNETIC 31
|
||||
#define NMEA_130306_WIND_SPEED_APPARENT 22
|
||||
#define NMEA_130306_WIND_ANGLE_APPARENT 32
|
||||
#define NMEA_130306_WIND_SPEED_TRUE_BOAT 23
|
||||
#define NMEA_130306_WIND_ANGLE_TRUE_BOAT 33
|
||||
#define NMEA_130306_WIND_SPEED_TRUE_WATER 24
|
||||
#define NMEA_130306_WIND_ANGLE_TRUE_WATER 34
|
||||
|
||||
|
||||
// Etats du séquenceur Nmea :
|
||||
#define ETAT_SEQUENCEUR_NMEA_INIT 0
|
||||
#define ETAT_SEQUENCEUR_NMEA_REPOS 1
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user