Update Wio WM1110 configuration to disable GPS and clean up location provider code
This commit is contained in:
@@ -24,6 +24,7 @@ build_flags = ${nrf52_base.build_flags}
|
|||||||
-D LR11X0_DIO_AS_RF_SWITCH=true
|
-D LR11X0_DIO_AS_RF_SWITCH=true
|
||||||
-D LR11X0_DIO3_TCXO_VOLTAGE=1.8
|
-D LR11X0_DIO3_TCXO_VOLTAGE=1.8
|
||||||
-D RF_SWITCH_TABLE
|
-D RF_SWITCH_TABLE
|
||||||
|
-D ENV_INCLUDE_GPS=0
|
||||||
build_src_filter = ${nrf52_base.build_src_filter}
|
build_src_filter = ${nrf52_base.build_src_filter}
|
||||||
+<helpers/*.cpp>
|
+<helpers/*.cpp>
|
||||||
+<helpers/sensors>
|
+<helpers/sensors>
|
||||||
|
|||||||
@@ -1,23 +1,6 @@
|
|||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include "target.h"
|
#include "target.h"
|
||||||
#include <helpers/ArduinoHelpers.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;
|
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);
|
WRAPPER_CLASS radio_driver(radio, board);
|
||||||
|
|
||||||
VolatileRTCClock rtc_clock;
|
VolatileRTCClock rtc_clock;
|
||||||
WM1110LocationProvider location_provider;
|
EnvironmentSensorManager sensors;
|
||||||
EnvironmentSensorManager sensors(location_provider);
|
|
||||||
|
|
||||||
#ifndef LORA_CR
|
#ifndef LORA_CR
|
||||||
#define LORA_CR 5
|
#define LORA_CR 5
|
||||||
|
|||||||
Reference in New Issue
Block a user