Subversion Repositories Projects

Rev

Rev 826 | Rev 835 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 826 Rev 832
Line 268... Line 268...
268
 
268
 
269
        write_time(8, bottom_line, uptime);
269
        write_time(8, bottom_line, uptime);
270
        write_time(15, bottom_line, naviData.FlyingTime);
270
        write_time(15, bottom_line, naviData.FlyingTime);
271
 
271
 
272
        write_ndigit_number_u(24, bottom_line, naviData.SatsInUse, 2, 0);
272
        write_ndigit_number_u(24, bottom_line, naviData.SatsInUse, 2, 0);
-
 
273
        if (!(naviData.NCFlags & NC_FLAG_GPS_OK) && (old_NCFlags & NC_FLAG_GPS_OK)) {
-
 
274
            for (uint8_t x = 24; x < 28; x++)
-
 
275
                write_char_att_xy(x, bottom_line, BLINK);
-
 
276
        } else if ((naviData.NCFlags & NC_FLAG_GPS_OK) && !(old_NCFlags & NC_FLAG_GPS_OK)) {
-
 
277
            for (uint8_t x = 24; x < 28; x++)
-
 
278
                write_char_att_xy(x, bottom_line, 0);
-
 
279
        }
273
 
280
 
274
        if (naviData.NCFlags & NC_FLAG_MANUAL_CONTROL) {
281
        if (naviData.NCFlags & NC_FLAG_MANUAL_CONTROL) {
275
            write_char_xy(23, bottom_line, 0xB3); // rc transmitter
282
            write_char_xy(23, bottom_line, 0xB3); // rc transmitter
276
        } else {
283
        } else {
277
            write_char_xy(23, bottom_line, 0); // clear
284
            write_char_xy(23, bottom_line, 0); // clear
Line 311... Line 318...
311
 
318
 
312
    // remember last values
319
    // remember last values
313
    last_RC_Quality = rc_signal;
320
    last_RC_Quality = rc_signal;
314
    last_UBat = naviData.UBat;
321
    last_UBat = naviData.UBat;
315
    old_MKFlags = naviData.FCFlags;
322
    old_MKFlags = naviData.FCFlags;
-
 
323
    old_NCFlags = naviData.NCFlags;
316
    seconds_since_last_data = 0;
324
    seconds_since_last_data = 0;
317
 
325
 
318
    return 0;
326
    return 0;
319
}
327
}
320
 
328