FlightGear next
gsdi.hxx
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: GPL-2.0+
3 * SPDX-FileCopyrightText: 2006 (C) Melchior FRANZ - mfranz#aon:at
4 *
5 * gsdi.cxx - Ground Speed Drift Angle Indicator (known as GSDI or GSDA)
6 * Written by Melchior FRANZ, started 2006.
7 *
8 * Copyright (C) 2006 Melchior FRANZ - mfranz#aon:at
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23*/
24
25#pragma once
26
27#include <simgear/props/props.hxx>
28#include <simgear/structure/subsystem_mgr.hxx>
29
30
45class GSDI : public SGSubsystem
46{
47public:
48 GSDI(SGPropertyNode *node);
49 virtual ~GSDI();
50
51 // Subsystem API.
52 void init() override;
53 void update(double dt) override;
54
55 // Subsystem identification.
56 static const char* staticSubsystemClassId() { return "gsdi"; }
57
58private:
59 std::string _name;
60 unsigned int _num;
61
62 // input
63 SGPropertyNode_ptr _serviceableN;
64 SGPropertyNode_ptr _ubodyN;
65 SGPropertyNode_ptr _vbodyN;
66
67 // output
68 SGPropertyNode_ptr _drift_uN;
69 SGPropertyNode_ptr _drift_vN;
70 SGPropertyNode_ptr _drift_speedN;
71 SGPropertyNode_ptr _drift_angleN;
72};
GSDI(SGPropertyNode *node)
Definition gsdi.cxx:38
virtual ~GSDI()
Definition gsdi.cxx:45
static const char * staticSubsystemClassId()
Definition gsdi.hxx:56
void update(double dt) override
Definition gsdi.cxx:69
void init() override
Definition gsdi.cxx:50