Implement remote lna toggle cli cmd

This commit is contained in:
João Brázio
2026-02-10 14:56:20 +00:00
parent 3f33455b4d
commit 71136671bd
171 changed files with 925 additions and 27 deletions

View File

@@ -41,6 +41,7 @@ build_src_filter = ${Meshadventurer.build_src_filter}
+<helpers/ui/SSD1306Display.cpp>
build_flags =
${Meshadventurer.build_flags}
-D USE_SX1262
-D RADIO_CLASS=CustomSX1262
-D WRAPPER_CLASS=CustomSX1262Wrapper
-D LORA_TX_POWER=22
@@ -89,6 +90,7 @@ build_src_filter = ${Meshadventurer.build_src_filter}
+<helpers/ui/SSD1306Display.cpp>
build_flags =
${Meshadventurer.build_flags}
-D USE_SX1262
-D RADIO_CLASS=CustomSX1262
-D WRAPPER_CLASS=CustomSX1262Wrapper
-D LORA_TX_POWER=22
@@ -112,6 +114,7 @@ build_src_filter = ${Meshadventurer.build_src_filter}
+<helpers/ui/SSD1306Display.cpp>
build_flags =
${Meshadventurer.build_flags}
-D USE_SX1262
-D RADIO_CLASS=CustomSX1268
-D WRAPPER_CLASS=CustomSX1268Wrapper
-D LORA_TX_POWER=22
@@ -160,6 +163,7 @@ build_src_filter = ${Meshadventurer.build_src_filter}
+<helpers/ui/SSD1306Display.cpp>
build_flags =
${Meshadventurer.build_flags}
-D USE_SX1262
-D RADIO_CLASS=CustomSX1268
-D WRAPPER_CLASS=CustomSX1268Wrapper
-D LORA_TX_POWER=22
@@ -186,6 +190,7 @@ build_src_filter = ${Meshadventurer.build_src_filter}
build_flags =
${Meshadventurer.build_flags}
-I examples/companion_radio/ui-new
-D USE_SX1262
-D RADIO_CLASS=CustomSX1262
-D WRAPPER_CLASS=CustomSX1262Wrapper
-D LORA_TX_POWER=22
@@ -208,6 +213,7 @@ build_src_filter = ${Meshadventurer.build_src_filter}
build_flags =
${Meshadventurer.build_flags}
-I examples/companion_radio/ui-new
-D USE_SX1262
-D RADIO_CLASS=CustomSX1262
-D WRAPPER_CLASS=CustomSX1262Wrapper
-D LORA_TX_POWER=22
@@ -226,6 +232,7 @@ lib_deps =
extends = Meshadventurer
build_flags =
${Meshadventurer.build_flags}
-D USE_SX1262
-D RADIO_CLASS=CustomSX1262
-D WRAPPER_CLASS=CustomSX1262Wrapper
-D LORA_TX_POWER=22
@@ -244,6 +251,7 @@ lib_deps =
extends = Meshadventurer
build_flags =
${Meshadventurer.build_flags}
-D USE_SX1262
-D RADIO_CLASS=CustomSX1262
-D WRAPPER_CLASS=CustomSX1262Wrapper
-D LORA_TX_POWER=22
@@ -271,6 +279,7 @@ build_src_filter = ${Meshadventurer.build_src_filter}
build_flags =
${Meshadventurer.build_flags}
-I examples/companion_radio/ui-new
-D USE_SX1262
-D RADIO_CLASS=CustomSX1268
-D WRAPPER_CLASS=CustomSX1268Wrapper
-D LORA_TX_POWER=22
@@ -293,6 +302,7 @@ build_src_filter = ${Meshadventurer.build_src_filter}
build_flags =
${Meshadventurer.build_flags}
-I examples/companion_radio/ui-new
-D USE_SX1262
-D RADIO_CLASS=CustomSX1268
-D WRAPPER_CLASS=CustomSX1268Wrapper
-D LORA_TX_POWER=22
@@ -311,6 +321,7 @@ lib_deps =
extends = Meshadventurer
build_flags =
${Meshadventurer.build_flags}
-D USE_SX1262
-D RADIO_CLASS=CustomSX1268
-D WRAPPER_CLASS=CustomSX1268Wrapper
-D LORA_TX_POWER=22
@@ -329,6 +340,7 @@ lib_deps =
extends = Meshadventurer
build_flags =
${Meshadventurer.build_flags}
-D USE_SX1262
-D RADIO_CLASS=CustomSX1268
-D WRAPPER_CLASS=CustomSX1268Wrapper
-D LORA_TX_POWER=22

View File

@@ -50,6 +50,16 @@ mesh::LocalIdentity radio_new_identity() {
return mesh::LocalIdentity(&rng); // create new random identity
}
#if defined(USE_SX1262) || defined(USE_SX1268)
void radio_set_rx_boosted_gain_mode(bool rxbgm) {
radio.setRxBoostedGainMode(rxbgm);
}
bool radio_get_rx_boosted_gain_mode() {
return radio.getRxBoostedGainMode();
}
#endif
void MASensorManager::start_gps() {
if(!gps_active) {
MESH_DEBUG_PRINTLN("starting GPS");

View File

@@ -47,3 +47,8 @@ uint32_t radio_get_rng_seed();
void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr);
void radio_set_tx_power(int8_t dbm);
mesh::LocalIdentity radio_new_identity();
#if defined(USE_SX1262) || defined(USE_SX1268)
bool radio_get_rx_boosted_gain_mode();
void radio_set_rx_boosted_gain_mode(bool rxbgm);
#endif