mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-05-04 23:55:18 -04:00
Data carrier detection
This commit is contained in:
parent
978800aaf9
commit
be98b0d7f7
4 changed files with 92 additions and 10 deletions
25
Config.h
25
Config.h
|
@ -43,8 +43,10 @@
|
|||
#endif
|
||||
|
||||
// MCU independent configuration parameters
|
||||
const long serial_baudrate = 115200;
|
||||
const int rssi_offset = 164;
|
||||
const long serial_baudrate = 115200;
|
||||
const int rssi_offset = 164;
|
||||
|
||||
const int lora_rx_turnaround_ms = 5;
|
||||
|
||||
// Default LoRa settings
|
||||
int lora_sf = 0;
|
||||
|
@ -67,4 +69,23 @@
|
|||
uint32_t stat_rx = 0;
|
||||
uint32_t stat_tx = 0;
|
||||
|
||||
bool outbound_ready = false;
|
||||
|
||||
bool stat_signal_detected = false;
|
||||
bool stat_signal_synced = false;
|
||||
bool stat_rx_ongoing = false;
|
||||
bool dcd = false;
|
||||
bool dcd_led = false;
|
||||
bool dcd_waiting = false;
|
||||
uint16_t dcd_count = 0;
|
||||
uint16_t dcd_threshold = 15;
|
||||
|
||||
uint32_t status_interval_ms = 3;
|
||||
uint32_t last_status_update = 0;
|
||||
|
||||
// Status flags
|
||||
const uint8_t SIG_DETECT = 0x01;
|
||||
const uint8_t SIG_SYNCED = 0x02;
|
||||
const uint8_t RX_ONGOING = 0x04;
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue