[prev in list] [next in list] [prev in thread] [next in thread]
List: flightgear-cvs
Subject: [Flightgear-cvslogs] CVS: FlightGear/src/Systems static.cxx, 1.6.2.1,
From: Melchior Franz <mfranz () flightgear ! org>
Date: 2007-03-31 9:36:18
Message-ID: E1HXa0Q-0001Sg-00 () baron ! me ! umn ! edu
[Download RAW message or body]
Update of /var/cvs/FlightGear-0.9/FlightGear/src/Systems
In directory baron:/tmp/cvs-serv4866/Systems
Modified Files:
Tag: PRE_OSG_PLIB_20061029
static.cxx static.hxx
Log Message:
John DENKER:
"This altimetry method is valid to above 100,000 feet, and
correctly handles Kollsman settings"
Index: static.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Systems/static.cxx,v
retrieving revision 1.6.2.1
retrieving revision 1.6.2.2
diff -C 2 -r1.6.2.1 -r1.6.2.2
*** static.cxx 6 Dec 2006 22:11:42 -0000 1.6.2.1
--- static.cxx 31 Mar 2007 09:36:16 -0000 1.6.2.2
***************
*** 12,16 ****
:
_name(node->getStringValue("name", "static")),
! _num(node->getIntValue("number", 0))
{
}
--- 12,18 ----
:
_name(node->getStringValue("name", "static")),
! _num(node->getIntValue("number", 0)),
! _tau(node->getDoubleValue("tau", 1))
!
{
}
***************
*** 46,54 ****
{
if (_serviceable_node->getBoolValue()) {
!
double target = _pressure_in_node->getDoubleValue();
double current = _pressure_out_node->getDoubleValue();
// double delta = target - current;
! _pressure_out_node->setDoubleValue(fgGetLowPass(current, target, dt));
}
}
--- 48,56 ----
{
if (_serviceable_node->getBoolValue()) {
! double trat = _tau ? dt/_tau : 100;
double target = _pressure_in_node->getDoubleValue();
double current = _pressure_out_node->getDoubleValue();
// double delta = target - current;
! _pressure_out_node->setDoubleValue(fgGetLowPass(current, target, trat));
}
}
Index: static.hxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Systems/static.hxx,v
retrieving revision 1.4.2.1
retrieving revision 1.4.2.2
diff -C 2 -r1.4.2.1 -r1.4.2.2
*** static.hxx 6 Dec 2006 22:11:42 -0000 1.4.2.1
--- static.hxx 31 Mar 2007 09:36:16 -0000 1.4.2.2
***************
*** 49,52 ****
--- 49,53 ----
string _name;
int _num;
+ double _tau;
SGPropertyNode_ptr _serviceable_node;
SGPropertyNode_ptr _pressure_in_node;
-------------------------------------------------------------------------
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