Avionics
Dropship Simulator
Xplane.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Bus.h
"
4
5
namespace
Devices
6
{
7
struct
XplaneConfig
8
{
9
bool
enabled
;
10
USHORT
port
;
11
};
12
13
struct
sentence
14
{
15
unsigned
char
group
;
16
char
unused1
,
unused2
,
unused3
;
17
18
union
19
{
20
char
charData
[4];
21
float
floatData
;
22
}
data
[8];
23
};
24
26
class
Xplane
27
{
28
private
:
29
Logger
*
logger
=
nullptr
;
30
XplaneConfig
*
config
=
nullptr
;
31
Bus
*
bus
=
nullptr
;
// needs a pointer because it is two-way (digital in or sensor can add, commands removed can trigger digital out)
32
SOCKET
fd
=
static_cast<
SOCKET
>
(SOCKET_ERROR);
33
34
public
:
35
void
Initialize
(
Logger
*
logger
,
XplaneConfig
*
config
,
Bus
* prmBus);
36
void
FrameMove
()
const
;
37
~Xplane
();
38
};
39
}
Devices::Xplane::fd
SOCKET fd
Definition:
Xplane.h:32
Devices::XplaneConfig::port
USHORT port
Definition:
Xplane.h:10
Devices::sentence::unused1
char unused1
Definition:
Xplane.h:16
Logger
Definition:
Logger.h:5
Devices
okay, the portable keyboard numbers don't work like the outside keypad because the outside keypad is ...
Definition:
Analog.cpp:3
Devices::sentence::floatData
float floatData
Definition:
Xplane.h:21
Bus.h
Devices::Xplane
Definition:
Xplane.h:26
Devices::Xplane::bus
Bus * bus
Definition:
Xplane.h:31
Devices::Xplane::config
XplaneConfig * config
Definition:
Xplane.h:30
Bus
Definition:
Bus.h:12
Devices::XplaneConfig
Definition:
Xplane.h:7
Devices::sentence::group
unsigned char group
Definition:
Xplane.h:15
Devices::Xplane::~Xplane
~Xplane()
Definition:
Xplane.cpp:122
Devices::sentence
Definition:
Xplane.h:13
Devices::Xplane::FrameMove
void FrameMove() const
Definition:
Xplane.cpp:44
Devices::sentence::data
union Devices::sentence::@5 data[8]
Devices::sentence::unused2
char unused2
Definition:
Xplane.h:16
Devices::Xplane::logger
Logger * logger
Definition:
Xplane.h:29
Devices::XplaneConfig::enabled
bool enabled
Definition:
Xplane.h:9
Devices::sentence::unused3
char unused3
Definition:
Xplane.h:16
Devices::sentence::charData
char charData[4]
Definition:
Xplane.h:20
Devices::Xplane::Initialize
void Initialize(Logger *logger, XplaneConfig *config, Bus *prmBus)
Definition:
Xplane.cpp:5
Xplane.h
Generated on Sat Feb 13 2021 09:30:44 for Avionics by
1.8.14