pull/87/head
alanbjohnston 5 years ago committed by GitHub
parent 66eccc997d
commit aed9cadb16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -206,7 +206,7 @@ int main(int argc, char * argv[]) {
char *sim_yes[10]; char *sim_yes[10];
fscanf(config_file, "%s %d %f %f", call, & reset_count, & lat_file, & long_file, & sim_yes); fscanf(config_file, "%s %d %f %f", call, & reset_count, & lat_file, & long_file, & sim_yes);
fclose(config_file); fclose(config_file);
printf("Config file /home/pi/CubeSatSim/sim.cfg contains %s %d %f %f %s\n", call, reset_count, lat_file, long_file, sim_yes); printf("Config file /home/pi/CubeSatSim/sim.cfg contains %s %d %f %f %s\n", call, reset_count, lat_file, long_file, *sim_yes);
reset_count = (reset_count + 1) % 0xffff; reset_count = (reset_count + 1) % 0xffff;
if ((fabs(lat_file) > 0) && (fabs(lat_file) < 90.0) && (fabs(long_file) > 0) && (fabs(long_file) < 180.0)) { if ((fabs(lat_file) > 0) && (fabs(lat_file) < 90.0) && (fabs(long_file) > 0) && (fabs(long_file) < 180.0)) {

Loading…
Cancel
Save

Powered by TurnKey Linux.