Update cubesatsim.ino

pull/264/head
alanbjohnston 3 years ago committed by GitHub
parent a3822a8ff3
commit 07ebf90f4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -911,6 +911,12 @@ void config_simulated_telem()
tempS = rand_float(20, 55);
temp_max = rand_float(50, 70);
temp_min = rand_float(10, 20);
time_start = (long int) millis();
eclipse_time = (long int)(millis() / 1000.0);
if (eclipse == 0.0)
eclipse_time -= period / 2; // if starting in eclipse, shorten interval
// #ifdef DEBUG_LOGGING
for (int i = 0; i < 3; i++)
@ -918,11 +924,7 @@ void config_simulated_telem()
Serial.printf("batt: %f speed: %f eclipse_time: %f eclipse: %f period: %f temp: %f max: %f min: %f\n", batt, rotation_speed, eclipse_time, eclipse, period, tempS, temp_max, temp_min);
// #endif
time_start = (long int) millis();
eclipse_time = (long int)(millis() / 1000.0);
if (eclipse == 0.0)
eclipse_time -= period / 2; // if starting in eclipse, shorten interval
// }
// tx_freq_hz -= tx_channel * 50000;

Loading…
Cancel
Save

Powered by TurnKey Linux.