Debian Codegraph @

src/Instrumentation/gsdi.hxx

raw symbols SCIP
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
31 /**
32 * Input properties:
33 *
34 * /instrumentation/gsdi[n]/serviceable
35 * /velocities/uBody-fps
36 * /velocities/vBody-fps
37 *
38 * Output properties:
39 *
40 * /instrumentation/gsdi[n]/drift-u-kt
41 * /instrumentation/gsdi[n]/drift-v-kt
42 * /instrumentation/gsdi[n]/drift-speed-kt
43 * /instrumentation/gsdi[n]/drift-angle-deg
44 */
45 class GSDI : public SGSubsystem
46 {
47 public:
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
58 private:
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 };