Update cubesatsim.ino

pull/161/head
alanbjohnston 3 years ago committed by GitHub
parent 27c2ed02a4
commit 3dec62a197
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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());
}
@ -2714,13 +2714,18 @@ bool TimerHandler0(struct repeating_timer *t) {
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);
pwm_set_gpio_level(BPSK_PWM_PIN, (config.top + 1) * 0.5);
if (wav_position > bufLen) { // 300) {
wav_position = wav_position - bufLen;
Serial.print("R");
Serial.print("\nR");
Serial.print(" ");
Serial.println(millis());
}

Loading…
Cancel
Save

Powered by TurnKey Linux.