Subversion Repositories Projects

Rev

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

Rev 766 Rev 772
Line 288... Line 288...
288
    // remember statistics (only when engines running)
288
    // remember statistics (only when engines running)
289
    if (naviData.FCFlags & FLAG_MOTOR_RUN) {
289
    if (naviData.FCFlags & FLAG_MOTOR_RUN) {
290
        if (COSD_FLAGS_CONFIG & COSD_FLAG_GPSHEIGHT) {
290
        if (COSD_FLAGS_CONFIG & COSD_FLAG_GPSHEIGHT) {
291
            if (naviData.CurrentPosition.Altitude / 1000 - altimeter_offset > max_Altimeter) max_Altimeter = naviData.CurrentPosition.Altitude / 1000;
291
            if (naviData.CurrentPosition.Altitude / 1000 - altimeter_offset > max_Altimeter) max_Altimeter = naviData.CurrentPosition.Altitude / 1000;
292
        } else {
292
        } else {
293
            if (naviData.Altimeter / 20 > max_Altimeter) max_Altimeter = naviData.Altimeter / 32;
293
            if (naviData.Altimeter / 20 > max_Altimeter) max_Altimeter = naviData.Altimeter / 20;
294
        }
294
        }
295
        if (naviData.GroundSpeed > max_GroundSpeed) max_GroundSpeed = naviData.GroundSpeed;
295
        if (naviData.GroundSpeed > max_GroundSpeed) max_GroundSpeed = naviData.GroundSpeed;
296
        if (naviData.HomePositionDeviation.Distance > max_Distance) {
296
        if (naviData.HomePositionDeviation.Distance > max_Distance) {
297
            max_Distance = naviData.HomePositionDeviation.Distance;
297
            max_Distance = naviData.HomePositionDeviation.Distance;
298
        }
298
        }