mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-10-22 21:41:22 +00:00
added colour and fixed set tx adc not sticking
This commit is contained in:
1 parent
a7ff39352c
commit
43f455393e
16 files changed
+684
-33
No files matched your search
@@ -887,6 +887,37 @@ void ui_set_radio_params(uint32_t freq_hz, uint8_t sf, uint16_t bw_khz_x10,
|
||||
s->lora_noise_floor = noise_floor;
|
||||
}
|
||||
|
||||
void ui_set_radio_runtime(int8_t effective_tx_power, bool apc_enabled,
|
||||
int8_t apc_reduction, int16_t apc_margin_x10,
|
||||
uint8_t apc_target_margin, uint8_t sync_word,
|
||||
uint16_t preamble_len, bool rx_duty_cycle,
|
||||
bool radio_ready, bool in_rx, bool tx_active)
|
||||
{
|
||||
struct ui_state *s = get_state();
|
||||
|
||||
s->lora_effective_tx_power = effective_tx_power;
|
||||
s->lora_apc_enabled = apc_enabled;
|
||||
s->lora_apc_reduction = apc_reduction;
|
||||
s->lora_apc_margin_x10 = apc_margin_x10;
|
||||
s->lora_apc_target_margin = apc_target_margin;
|
||||
s->lora_sync_word = sync_word;
|
||||
s->lora_preamble_len = preamble_len;
|
||||
s->lora_rx_duty_cycle = rx_duty_cycle;
|
||||
s->lora_radio_ready = radio_ready;
|
||||
s->lora_in_rx = in_rx;
|
||||
s->lora_tx_active = tx_active;
|
||||
}
|
||||
|
||||
void ui_set_radio_stats(uint32_t packets_rx, uint32_t packets_tx,
|
||||
uint32_t packets_err)
|
||||
{
|
||||
struct ui_state *s = get_state();
|
||||
|
||||
s->lora_packets_rx = packets_rx;
|
||||
s->lora_packets_tx = packets_tx;
|
||||
s->lora_packets_err = packets_err;
|
||||
}
|
||||
|
||||
void ui_set_gps_data(bool has_fix, uint8_t sats,
|
||||
int32_t lat_mdeg, int32_t lon_mdeg, int32_t alt_mm)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user