MRAS
Multi Rocket Avionics System
Loading...
Searching...
No Matches
Sensor_ZOEM8Q.h
1//
2// Created by robos on 23/12/2022.
3//
4
5#ifndef MRAS_SENSOR_ZOEM8Q_H
6#define MRAS_SENSOR_ZOEM8Q_H
7
8
9#include "Subsystem.h"
10#include "SparkFun_u-blox_GNSS_Arduino_Library.h"
11#include <Arduino.h>
12#include <Wire.h>
13#include "SD.h"
14#include <TimeLib.h>
15
16#include "system_messages/GNSSDataMsg.h"
17
25class Sensor_ZOEM8Q : public Subsystem{
26private:
27 SFE_UBLOX_GNSS *gnss{};
28 TwoWire *_pipe;
29 uint32_t _freq;
30public:
38 Sensor_ZOEM8Q(uint8_t id, TwoWire& pipe, uint32_t freq) : Subsystem(id) {
39 gnss = new SFE_UBLOX_GNSS();
40 _pipe = &pipe;
41 _freq = freq;
42 }
43
44
45 // Destructor
47 delete gnss;
48 }
49
50 int8_t setup() override;
51
52 int8_t loop() override;
53
54 static uint16_t GPSweek();
55
56 static uint32_t actualTimeOfWeekms();
57
58 int8_t performOnlineAssist();
59
60 SUBSYSTEM_NO_MESSAGE_HANDLER
61 SUBSYSTEM_NAME("ZOEM8Q");
62
63
64};
65
66uint64_t getTimestampMillisGPS();
67
68#endif //MRAS_SENSOR_ZOEM8Q_H
A subsystem for the Ublox ZOEM8Q GNSS module.
Definition: Sensor_ZOEM8Q.h:25
int8_t performOnlineAssist()
Definition: Sensor_ZOEM8Q.cpp:72
Sensor_ZOEM8Q(uint8_t id, TwoWire &pipe, uint32_t freq)
Construct a new Sensor_ZOEM8Q object.
Definition: Sensor_ZOEM8Q.h:38
int8_t loop() override
Definition: Sensor_ZOEM8Q.cpp:34
Definition: Subsystem.h:30