FlightGear next
pitot.hxx
Go to the documentation of this file.
1// pitot.hxx - the pitot air system.
2// Written by David Megginson, started 2002.
3//
4// Last modified by Eric van den Berg, 01 Nov 2013
5// This file is in the Public Domain and comes with no warranty.
6
7
8#pragma once
9
10#ifndef __cplusplus
11# error This library requires C++
12#endif
13
14#include <simgear/compiler.h>
15
16#include <string>
17
18#include <simgear/props/props.hxx>
19#include <simgear/structure/subsystem_mgr.hxx>
20
21
39class PitotSystem : public SGSubsystem
40{
41public:
42 PitotSystem ( SGPropertyNode *node );
43 virtual ~PitotSystem ();
44
45 // Subsystem API.
46 void bind() override;
47 void init() override;
48 void unbind() override;
49 void update(double dt) override;
50
51 // Subsystem identification.
52 static const char* staticSubsystemClassId() { return "pitot"; }
53
54private:
55 std::string _name;
56 int _num;
57 double _stall_factor;
58 SGPropertyNode_ptr _serviceable_node;
59 SGPropertyNode_ptr _pressure_node;
60 SGPropertyNode_ptr _mach_node;
61 SGPropertyNode_ptr _total_pressure_node;
62 SGPropertyNode_ptr _measured_total_pressure_node;
63 SGPropertyNode_ptr _alpha_deg_node;
64 SGPropertyNode_ptr _beta_deg_node;
65};
void init() override
Definition pitot.cxx:35
virtual ~PitotSystem()
Definition pitot.cxx:30
static const char * staticSubsystemClassId()
Definition pitot.hxx:52
PitotSystem(SGPropertyNode *node)
Definition pitot.cxx:21
void update(double dt) override
Definition pitot.cxx:64
void unbind() override
Definition pitot.cxx:59
void bind() override
Definition pitot.cxx:54