I ran into compile errors with vacuum.cxx this morning. Adding
_pressure_node to the header as a member variable solved the problem.
The file is attached.
--
Tony Peden
[EMAIL PROTECTED]
We all know Linux is great ... it does infinite loops in 5 seconds.
-- attributed to Linus Torvalds
// vacuum.hxx - a vacuum pump connected to the aircraft engine.
// Written by David Megginson, started 2002.
//
// This file is in the Public Domain and comes with no warranty.
#ifndef __SYSTEMS_VACUUM_HXX
#define __SYSTEMS_VACUUM_HXX 1
#ifndef __cplusplus
# error This library requires C++
#endif
#include <simgear/misc/props.hxx>
#include <Main/fgfs.hxx>
/**
* Model a vacuum-pump system.
*
* This first, simple draft is hard-wired to engine #1.
*
* Input properties:
*
* /engines/engine[0]/rpm
* /systems/vacuum[0]/serviceable
*
* Output properties:
*
* /systems/vacuum[0]/suction-inhg
*/
class VacuumSystem : public FGSubsystem
{
public:
VacuumSystem ();
virtual ~VacuumSystem ();
virtual void init ();
virtual void bind ();
virtual void unbind ();
virtual void update (double dt);
private:
SGPropertyNode_ptr _serviceable_node;
SGPropertyNode_ptr _rpm_node;
SGPropertyNode_ptr _suction_node;
SGPropertyNode_ptr _pressure_node;
};
#endif // __SYSTEMS_VACUUM_HXX