X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Faltimeter.cxx;h=8e9fbb1c95897cc72fde13ef4f5e2d9cf80f9796;hb=43b300fe46d8013a90009ec8e1a923ec53a396b5;hp=f5d6229d5e7a942c6b8a41d4e6d24fa4afc34da6;hpb=b395c12fdb68662638bc638d339fb8fcbbaee778;p=flightgear.git diff --git a/src/Instrumentation/altimeter.cxx b/src/Instrumentation/altimeter.cxx index f5d6229d5..8e9fbb1c9 100644 --- a/src/Instrumentation/altimeter.cxx +++ b/src/Instrumentation/altimeter.cxx @@ -15,6 +15,10 @@ // // Note non-default name, quantum, and tau values. +#ifdef HAVE_CONFIG_H +# include +#endif + #include #include @@ -67,7 +71,7 @@ Altimeter::update (double dt) _mode_c_node->setDoubleValue(100 * SGMiscd::round(raw_PA/100)); _kollsman = fgGetLowPass(_kollsman, _altimeter.kollsman_ft(setting), trat); if (_quantum) - press_alt = _quantum*round(raw_PA/_quantum); + press_alt = _quantum * SGMiscd::round(raw_PA/_quantum); else press_alt = raw_PA; _press_alt_node->setDoubleValue(press_alt);