Update Wio WM1110 configuration to disable GPS and clean up location provider code

This commit is contained in:
ViezeVingertjes 2025-10-30 16:33:02 +01:00
parent ec05d40b3c
commit 5088444f85
2 changed files with 2 additions and 19 deletions

View file

@ -24,6 +24,7 @@ build_flags = ${nrf52_base.build_flags}
-D LR11X0_DIO_AS_RF_SWITCH=true
-D LR11X0_DIO3_TCXO_VOLTAGE=1.8
-D RF_SWITCH_TABLE
-D ENV_INCLUDE_GPS=0
build_src_filter = ${nrf52_base.build_src_filter}
+<helpers/*.cpp>
+<helpers/sensors>

View file

@ -1,23 +1,6 @@
#include <Arduino.h>
#include "target.h"
#include <helpers/ArduinoHelpers.h>
#include <helpers/sensors/LocationProvider.h>
class WM1110LocationProvider : public LocationProvider {
public:
long getLatitude() override { return 0; }
long getLongitude() override { return 0; }
long getAltitude() override { return 0; }
long satellitesCount() override { return 0; }
bool isValid() override { return false; }
long getTimestamp() override { return 0; }
void sendSentence(const char* sentence) override {}
void reset() override {}
void begin() override {}
void stop() override {}
void loop() override {}
bool isEnabled() override { return false; }
};
WioWM1110Board board;
@ -26,8 +9,7 @@ RADIO_CLASS radio = new Module(P_LORA_NSS, P_LORA_DIO_1, P_LORA_RESET, P_LORA_BU
WRAPPER_CLASS radio_driver(radio, board);
VolatileRTCClock rtc_clock;
WM1110LocationProvider location_provider;
EnvironmentSensorManager sensors(location_provider);
EnvironmentSensorManager sensors;
#ifndef LORA_CR
#define LORA_CR 5