[prev in list] [next in list] [prev in thread] [next in thread]
List: flightgear-cvs
Subject: [Flightgear-cvslogs] CVS: FlightGear/src/Instrumentation
From: Melchior Franz <mfranz () flightgear ! org>
Date: 2007-03-31 15:17:59
Message-ID: E1HXfL5-0003hf-00 () baron ! me ! umn ! edu
[Download RAW message or body]
Update of /var/cvs/FlightGear-0.9/FlightGear/src/Instrumentation
In directory baron:/tmp/cvs-serv14109
Modified Files:
Tag: PRE_OSG_PLIB_20061029
altimeter.cxx
Log Message:
use round() from SG, as this isn't available everywhere
Index: altimeter.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Instrumentation/altimeter.cxx,v
retrieving revision 1.10.2.2
retrieving revision 1.10.2.3
diff -C 2 -r1.10.2.2 -r1.10.2.3
*** altimeter.cxx 31 Mar 2007 09:36:16 -0000 1.10.2.2
--- altimeter.cxx 31 Mar 2007 15:17:57 -0000 1.10.2.3
***************
*** 17,20 ****
--- 17,21 ----
#include <simgear/math/interpolater.hxx>
+ #include <simgear/math/SGMath.hxx>
#include <Main/fg_props.hxx>
***************
*** 64,68 ****
// The mechanism settles slowly toward new pressure altitude:
raw_PA = fgGetLowPass(raw_PA, _altimeter.press_alt_ft(pressure), trat);
! _mode_c_node->setDoubleValue(100 * round(raw_PA/100));
_kollsman = fgGetLowPass(_kollsman, _altimeter.kollsman_ft(setting), trat);
if (_quantum)
--- 65,69 ----
// The mechanism settles slowly toward new pressure altitude:
raw_PA = fgGetLowPass(raw_PA, _altimeter.press_alt_ft(pressure), trat);
! _mode_c_node->setDoubleValue(100 * SGMiscd::round(raw_PA/100));
_kollsman = fgGetLowPass(_kollsman, _altimeter.kollsman_ft(setting), trat);
if (_quantum)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-cvslogs mailing list
Flightgear-cvslogs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-cvslogs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic