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

@ -912,17 +912,19 @@ void config_simulated_telem()
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++)
Serial.printf("axis: %f angle: %f v: %f i: %f \n", axis[i], angle[i], volts_max[i], amps_max[i]);
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.