From 3dec62a19794d0d5dae2a36e414c61fa1e1adcf0 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 11 Jul 2022 13:09:50 -0400 Subject: [PATCH] Update cubesatsim.ino --- cubesatsim/cubesatsim.ino | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 77203944..b185a3b9 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -974,7 +974,7 @@ void write_wave(int i, short int *buffer) // ctr = ctr - BUFFER_SIZE; if (ctr > bufLen) { ctr = ctr - bufLen; - Serial.print("r"); + Serial.print("\r"); Serial.print(" "); Serial.println(millis()); } @@ -2713,6 +2713,11 @@ bool TimerHandler0(struct repeating_timer *t) { // Serial.print(" "); tx_bit = (buffer[wav_position++] > 0) ? true: false; + + if (tx_bit) + Serial.print("-"); + else + Serial.print("_"); pwm_config_set_output_polarity( &config, tx_bit, tx_bit); pwm_init(bpsk_pin_slice, &config, true); @@ -2720,7 +2725,7 @@ bool TimerHandler0(struct repeating_timer *t) { if (wav_position > bufLen) { // 300) { wav_position = wav_position - bufLen; - Serial.print("R"); + Serial.print("\nR"); Serial.print(" "); Serial.println(millis()); }