Free Electron
DroneInput.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __flight_DroneInput_h__
8 #define __flight_DroneInput_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Convert controller events into flight control inputs
17 
18  @ingroup flight
19 *//***************************************************************************/
20 class FE_DL_EXPORT DroneInput:
21  virtual public HandlerI,
22  public Initialize<DroneInput>
23 {
24  public:
25 
26  DroneInput(void);
27 virtual ~DroneInput(void);
28 
29  void initialize(void);
30 
31 virtual void handleBind(sp<SignalerI> spSignalerI,sp<Layout> spLayout);
32 virtual void handle(Record& a_signal);
33 
34  private:
35 
36  void handleEvent(Record& a_signal);
37 
38  WindowEvent m_event;
39  AsCatalog m_asCatalog;
40 
41  Real m_throttle;
42  Real m_yaw;
43  Real m_pitch;
44  Real m_bank;
45 };
46 
47 } /* namespace ext */
48 } /* namespace fe */
49 
50 #endif /* __flight_DroneInput_h__ */
Convert controller events into flight control inputs.
Definition: DroneInput.h:20
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Interface to handle signals from an SignalerI.
Definition: HandlerI.h:22
Generalized windowing event.
Definition: WindowEvent.h:43
Reference to an instance of a Layout.
Definition: RecordSB.h:35