quite some fixes
This commit is contained in:
@@ -70,6 +70,8 @@ class SensorData : public Component {
|
||||
void run() override;
|
||||
void runAsChild() override;
|
||||
void initGnss();
|
||||
void updateUbxData();
|
||||
|
||||
|
||||
QMC5883LCompass* realCompass = nullptr;
|
||||
CalcAzimuth* calcCompass = nullptr;
|
||||
@@ -93,8 +95,9 @@ class SensorData : public Component {
|
||||
uint16_t port;
|
||||
int16_t realAzimuth = INT16_MAX;
|
||||
int16_t calcAzimuth = INT16_MAX;
|
||||
uint32_t lastUbxUpdate = 0;
|
||||
|
||||
float yawPitchRoll[3];
|
||||
float yawPitchRoll[3] {0, 0, 0};
|
||||
|
||||
// static
|
||||
static void printPVTdata(UBX_NAV_PVT_data_t *ubxDataStruct);
|
||||
@@ -103,7 +106,6 @@ class SensorData : public Component {
|
||||
static UBX_NAV_PVT_data_t* ubxDataStatic;
|
||||
static uint32_t ubxUpdateTimeStatic;
|
||||
static bool outputStatusPrintPVTdata;
|
||||
static bool newData;
|
||||
};
|
||||
|
||||
#endif //SENSOR_DATA_H
|
||||
|
||||
Reference in New Issue
Block a user