MRAS
Multi Rocket Avionics System
Loading...
Searching...
No Matches
GNSSDataMsg.h
1//
2// Created by robos on 23/12/2022.
3//
4
5#ifndef MRAS_GNSSDATAMSG_H
6#define MRAS_GNSSDATAMSG_H
7
8#include "SystemMessage.h"
9
15struct GNSSDataMsg : public SystemMessage {
16 explicit GNSSDataMsg(SystemMessageType gnss_msg_type) : SystemMessage(gnss_msg_type) {}
17
21 float latitude = 0;
22
26 float longitude = 0;
27
31 float altitude = 0;
32// float speed = 0;
33// float heading = 0;
34
47 uint8_t fix_type = 0;
48
52 uint8_t SIV = 0;
53
54
55// float hAcc = 0; // Auto generated by copilot - may implement later
56// float vAcc = 0;
57// float sAcc = 0;
58// float cAcc = 0;
59// float gAcc = 0;
60// float pAcc = 0;
61// float tAcc = 0;
62// float headAcc = 0;
63// float headVeh = 0;
64// float magDec = 0; Magnetic declination at that point according to world magnetic model - A great idea by copilot
65// float magAcc = 0; - Magnetic declination not supported by ublox 8 series /:(
66};
67
68
69#endif //MRAS_GNSSDATAMSG_H
A base class for all system messages.
Definition: SystemMessage.h:32
Message sent by the GNSS (also referred to less correctly as GPS) to the system.
Definition: GNSSDataMsg.h:15
float altitude
The altitude in meters above mean sea level.
Definition: GNSSDataMsg.h:31
float longitude
The longitude in decimal degrees.
Definition: GNSSDataMsg.h:26
uint8_t fix_type
The current fix type.
Definition: GNSSDataMsg.h:47
uint8_t SIV
The number of satellites used in the fix.
Definition: GNSSDataMsg.h:52
float latitude
The latitude in decimal degrees.
Definition: GNSSDataMsg.h:21