2025-06-01 09:25:17 -07:00
|
|
|
#pragma once
|
2025-04-20 17:40:58 -07:00
|
|
|
#include <cstdint> // For uint8_t, uint32_t
|
|
|
|
|
|
2025-06-01 20:41:04 -07:00
|
|
|
#define TELEM_MODE_DENY 0
|
|
|
|
|
#define TELEM_MODE_ALLOW_FLAGS 1 // use contact.flags
|
|
|
|
|
#define TELEM_MODE_ALLOW_ALL 2
|
2025-05-05 11:21:55 +10:00
|
|
|
|
2025-06-22 16:21:04 +10:00
|
|
|
#define ADVERT_LOC_NONE 0
|
|
|
|
|
#define ADVERT_LOC_SHARE 1
|
|
|
|
|
|
2025-06-01 20:41:04 -07:00
|
|
|
struct NodePrefs { // persisted to file
|
2025-04-20 17:40:58 -07:00
|
|
|
float airtime_factor;
|
|
|
|
|
char node_name[32];
|
|
|
|
|
float freq;
|
|
|
|
|
uint8_t sf;
|
|
|
|
|
uint8_t cr;
|
2025-07-16 19:25:28 +10:00
|
|
|
uint8_t multi_acks;
|
2025-04-20 17:40:58 -07:00
|
|
|
uint8_t manual_add_contacts;
|
|
|
|
|
float bw;
|
|
|
|
|
uint8_t tx_power_dbm;
|
2025-05-05 11:21:55 +10:00
|
|
|
uint8_t telemetry_mode_base;
|
|
|
|
|
uint8_t telemetry_mode_loc;
|
2025-05-22 15:26:30 +10:00
|
|
|
uint8_t telemetry_mode_env;
|
2025-04-20 17:40:58 -07:00
|
|
|
float rx_delay_base;
|
|
|
|
|
uint32_t ble_pin;
|
2025-06-22 16:21:04 +10:00
|
|
|
uint8_t advert_loc_policy;
|
2025-11-20 18:55:39 -08:00
|
|
|
uint8_t buzzer_quiet;
|
2025-11-29 16:37:10 +08:00
|
|
|
uint8_t gps_enabled; // GPS enabled flag (0=disabled, 1=enabled)
|
|
|
|
|
uint32_t gps_interval; // GPS read interval in seconds
|
2025-06-01 09:25:17 -07:00
|
|
|
};
|