From 3eea70772e2ca5742fb8e430d5b8e9d5f6352a6b Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 5 Dec 2022 16:08:37 -0500 Subject: [PATCH] remove forced sim telemetry for FSK --- cubesatsim/cubesatsim.ino | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 9623f417..689f0a52 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -148,8 +148,8 @@ void setup() { */ start_ina219(); -// if (i2c_bus3 == false) - if ((i2c_bus3 == false) || (mode == FSK)) // force simulated telemetry mode for FSK + if (i2c_bus3 == false) +// if ((i2c_bus3 == false) || (mode == FSK)) // force simulated telemetry mode for FSK config_simulated_telem(); /* @@ -209,12 +209,11 @@ void loop() { if (sim_mode == TRUE) generate_simulated_telem(); - else + else { read_ina219(); // query INA219 sensors and Payload sensors + read_payload(); // only read payload if not simulated telemetry + } - if (mode != FSK) // don't read payload in FSK mode - read_payload(); - // encode as digits (APRS or CW mode) or binary (DUV FSK) if ((mode == BPSK) || (mode == FSK)) { get_tlm_fox();