added test of lat and long from sim.cfg

pull/60/head
alanbjohnston 5 years ago committed by GitHub
parent d8567fa259
commit 42a59f991d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -190,6 +190,9 @@ int main(int argc, char *argv[]) {
printf("Config file /home/pi/CubeSatSim/sim.cfg contains %s %d %8.2f %8.2f\n", call, reset_count, lat_file, long_file);
reset_count = (reset_count + 1) % 0xffff;
if ((abs(lat_file) > 0) && ((abs(lat_file) < 90.0) && (abs(long_file) > 0) && (abs(long_file) < 180.0))
printf("Valid latitude and longitude in config file\n");
wiringPiSetup ();
// Check for SPI and AX-5043 Digital Transceiver Board

Loading…
Cancel
Save

Powered by TurnKey Linux.