mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Update Wio WM1110 configuration to disable GPS and clean up location provider code
This commit is contained in:
parent
ec05d40b3c
commit
5088444f85
2 changed files with 2 additions and 19 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue