Rev 24 | Rev 26 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 24 | Rev 25 | ||
---|---|---|---|
Line 144... | Line 144... | ||
144 | nextPosTime += 1000; |
144 | nextPosTime += 1000; |
145 | 145 | ||
146 | // slow down the output of ata |
146 | // slow down the output of ata |
147 | if (speedAvgTime > 0) |
147 | if (speedAvgTime > 0) |
148 | speedAvg = (speedAvgSum / speedAvgTime) * KNOTS_TO_MPH; |
148 | speedAvg = (speedAvgSum / speedAvgTime) * KNOTS_TO_MPH; |
- | 149 | else |
|
- | 150 | speedAvg = 0.0; |
|
149 | 151 | ||
150 | // print out the GMT time at the top of the screen |
152 | // print out the GMT time at the top of the screen |
151 | display1.gotoxy (0, 0); |
153 | display1.gotoxy (0, 0); |
152 | display1.printString (small_font, &loc.time[0], 2, WHITE); |
154 | display1.printString (small_font, &loc.time[0], 2, WHITE); |
153 | display1.printString (small_font, ":", 1, WHITE); |
155 | display1.printString (small_font, ":", 1, WHITE); |
Line 237... | Line 239... | ||
237 | #endif |
239 | #endif |
238 | 240 | ||
239 | } |
241 | } |
240 | } |
242 | } |
241 | display1.gotoxy (0, 56); |
243 | display1.gotoxy (0, 56); |
242 | display1.printString (small_font, "T", 2, WHITE); |
- | |
243 | display1.fontDigits (small_font, 4, 1, temp32 / 10, WHITE); |
244 | display1.fontDigits (small_font, 3, 1, temp32 / 10, WHITE); |
244 | display1.printString (small_font, " P", 2, WHITE); |
245 | display1.printString (small_font, "C", 2, WHITE); |
245 | display1.fontDigits (small_font, 5, 0, pres32 / 100, WHITE); |
246 | display1.fontDigits (small_font, 4, -1, pres32 / 100, WHITE); |
246 | display1.printString (small_font, " ", 1, WHITE); |
247 | display1.printString (small_font, "mb", 2, WHITE); |
247 | 248 | ||
248 | display1.display (); |
249 | display1.display (); |
249 | } |
250 | } |
250 | } |
251 | } |