aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-07-05 11:39:27 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-07-05 11:39:27 +0200
commit385e0d9935b7ed7fc46d85c5c77e4e8c095bcce4 (patch)
tree3950e8db86408917086c0af3c52c08908226ac49
parent1efc52d414887d568e9af709795169ae0e3f8cc4 (diff)
downloadglutte-o-matic-385e0d9935b7ed7fc46d85c5c77e4e8c095bcce4.tar.gz
glutte-o-matic-385e0d9935b7ed7fc46d85c5c77e4e8c095bcce4.tar.bz2
glutte-o-matic-385e0d9935b7ed7fc46d85c5c77e4e8c095bcce4.zip
Normalise STATS1 beacon
-rw-r--r--src/common/Core/fsm.c9
-rw-r--r--src/common/Core/stats.c2
2 files changed, 1 insertions, 10 deletions
diff --git a/src/common/Core/fsm.c b/src/common/Core/fsm.c
index a41ee0e..cc434c4 100644
--- a/src/common/Core/fsm.c
+++ b/src/common/Core/fsm.c
@@ -463,8 +463,7 @@ void fsm_update() {
case FSM_BALISE_STATS1:
fsm_out.tx_on = 1;
fsm_out.msg_frequency = 588;
-#warning "dit duration = 110"
- fsm_out.cw_dit_duration = 30;
+ fsm_out.cw_dit_duration = 110;
{
const float supply_voltage = round_float_to_half_steps(analog_measure_12v());
@@ -491,12 +490,6 @@ void fsm_update() {
}
if (balise_message_empty()) {
-#warning "only for debug"
- if (current_state == FSM_BALISE_STATS1) {
- snprintf(balise_message, BALISE_MESSAGE_LEN-1,
- CW_PREDELAY "HB9G " CW_POSTDELAY);
- }
- else
if (temperature_valid()) {
snprintf(balise_message, BALISE_MESSAGE_LEN-1,
CW_PREDELAY "HB9G JN36BK 1628M U %dV%01d %c T %d %s" CW_POSTDELAY,
diff --git a/src/common/Core/stats.c b/src/common/Core/stats.c
index 9a14076..2c9009a 100644
--- a/src/common/Core/stats.c
+++ b/src/common/Core/stats.c
@@ -171,12 +171,10 @@ void stats_tx_switched(int tx_on)
if (tx_on) {
last_tx_on = timestamp_now();
- fprintf(stderr, "TX on at %lu\n", last_tx_on);
last_tx_on_valid = 1;
}
else if (last_tx_on_valid) {
const uint64_t qso_duration = timestamp_now() - last_tx_on;
- fprintf(stderr, "TX off with dur=%lu\n", qso_duration);
if (qso_duration > max_qso_duration) {
max_qso_duration = qso_duration;
}