Porównaj commity

...

5 Commity

Autor SHA1 Wiadomość Data
sh123 e3196d4736 Small refactoring 2022-12-21 15:38:52 +02:00
sh123 17a9d652af
Update README.md 2022-12-21 12:12:51 +02:00
sh123 bcecb5b9be
Update README.md 2022-12-21 12:10:59 +02:00
sh123 a403dac65e
Update README.md 2022-12-21 12:09:16 +02:00
sh123 e7b0cbfee3
Update README.md 2022-12-21 12:07:36 +02:00
5 zmienionych plików z 12 dodań i 6 usunięć

Wyświetl plik

@ -23,7 +23,8 @@ Modules, which are used by users and known to work
- TTGO T-Beam (SX1276)
# Building
- Update `include/config.h` with your parameters
- Update `include/config.h` with your radio settings
- If you are using lora-aprs iGate (non AX.25) then set `CFG_TEXT_PACKETS` and `CFG_TEXT_PACKETS_3` config parameters to `true` and use APRSDroid TNC2 connection protocol
- To build for client/tracker mode use `pio run -e esp32dev`
- To build for iGate mode use `pio run -e esp32dev_igate`

Wyświetl plik

@ -1,3 +1,6 @@
#ifndef CONFIG_H
#define CONFIG_H
// Uncomment for SX126X module usage
#define USE_SX126X
@ -113,3 +116,5 @@
#define CFG_TLM_ENABLE false // enable modem battery monitor
#define CFG_TLM_BAT_MON_PIN 36 // battery ADC pin
#define CFG_TLM_BAT_MON_CAL 0.37f // calibration coefficient
#endif // CONFIG_H

Wyświetl plik

@ -123,7 +123,6 @@ private:
// processor config
const int CfgConnRetryMs = 500; // connection retry delay, e.g. wifi
const int CfgPollDelayMs = 20; // main loop delay
const int CfgConnRetryMaxTimes = 10; // number of connection retries
const int CfgTelemetryPeriodMs = 60000; // how often to send telemetry event

Wyświetl plik

@ -315,7 +315,6 @@ void Service::loop()
if (config_.TlmEnable) {
telemetryTimer_.tick();
}
delay(CfgPollDelayMs);
}
bool Service::isRigRxBusy() {

Wyświetl plik

@ -1,8 +1,5 @@
#include <arduino-timer.h>
#include <DebugLog.h>
#include "WiFi.h"
#include "loraprs_service.h"
#if __has_include("/tmp/esp32_loraprs_config.h")
#pragma message("Using external config")
@ -18,6 +15,10 @@
#pragma message("Configured for server mode")
#endif
#include "loraprs_service.h"
const int CfgPollDelayMs = 20; // main loop delay
/*
* Initialize config from config.h options.
* Enables future use of EEPROM or allows user to dynamically modify config at run time.
@ -128,4 +129,5 @@ void setup() {
void loop() {
loraPrsService.loop();
watchdogLedTimer.tick();
delay(CfgPollDelayMs);
}