[xplane] Add monitoring of the number of minutes behind due to low FPS

This commit is contained in:
Mat Sutcliffe
2020-01-25 13:30:38 +00:00
parent 377b2f6a3e
commit e50bb6d5c7
10 changed files with 36 additions and 19 deletions

View File

@@ -114,11 +114,12 @@ namespace XSwiftBus
//! or since this function was last called, whichever is later.
//! Second part is the average simulation time ratio during the same period.
//! Third part is the total track miles over-reported during the same period.
//! Fourth part is the total minutes behind scedule during the same period.
//! \return Zero if no samples were collected since this function was last called.
std::tuple<double, double, double> getFrameStats();
std::tuple<double, double, double, double> getFrameStats();
//! Reset the monitoring of total track miles lost due to low frame rate.
void resetMilesLost();
//! Reset the monitoring of total miles and minutes lost due to low frame rate.
void resetFrameTotals();
//! Get aircraft latitude in degrees
double getLatitudeDeg() const { return m_latitude.get(); }