Skip to content

Commit

Permalink
Update final_countdown.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash2772 authored Jun 21, 2021
1 parent e6c6817 commit 28e572b
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions final_countdown.ino
Original file line number Diff line number Diff line change
Expand Up @@ -139,25 +139,35 @@ void loop() {
float altitude1;
int sats;

if (GPS.fix == 1) {
// if ((int)GPS.fix == 0){
// lat1 = 0;
// //lat2 = 'x';
// long1 = 0;
// //long2 = 'x';
// speed1 = 0;
// altitude1 = 0;
// sats = 0;
// }
//add delay with millis?
if (GPS.fix) {
lat1 = (GPS.latitude);
lat2 = (GPS.lat);
//lat2 = (GPS.lat);
long1 = (GPS.longitude);
long2 = (GPS.lon);
//long2 = (GPS.lon);
speed1 = (GPS.speed);
altitude1 = (GPS.altitude);
sats = ((int)GPS.satellites);
}

else{
lat1 = 0;
lat2 = 'x';
long1 = 0;
long2 = 'x';
speed1 = 0;
altitude1 = 0;
sats = 0;
}
// else{
// lat1 = 0;
// lat2 = 'x';
// long1 = 0;
// long2 = 'x';
// speed1 = 0;
// altitude1 = 0;
// sats = 0;
// }

//Function to store time since device was powered on/reset
t = millis();
Expand Down

0 comments on commit 28e572b

Please sign in to comment.