WSF
WsfManualGuidance.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11// ****************************************************************************
12// Updated by Infoscitex, a DCS Company.
13// ****************************************************************************
14
15#ifndef WSFMANUALGUIDANCE_HPP
16#define WSFMANUALGUIDANCE_HPP
17
18#include "wsf_export.h"
19
20class UtInput;
21
26{
27public:
29 {
30 public:
32 : mStickX(0.0)
33 , mStickY(0.0)
34 , mPedals(0.0)
35 , mThrottle(0.0)
36 {
37 }
38 double mStickX; // Lateral stick input (-1 to +1)
39 double mStickY; // Longitudinal stick input (-1 to +1)
40 double mPedals; // Rudder pedal input (-1 to +1)
41 double mThrottle; // Throttle ( 0 to +1)
42 };
43
45 : mManualControls()
46 {
47 }
48
49 virtual bool Initialize(double aSimTime) { return true; }
50 virtual bool ProcessInput(UtInput& aInput) { return false; }
51 virtual void Update(double aSimTime){};
52
56 virtual void BeginManualControl() = 0;
57 virtual void EndManualControl() = 0;
58
59 void SetManualInputs(ManualControls& aControl) { mManualControls = aControl; };
60 ManualControls& GetManualInputs(void) { return mManualControls; };
61
62private:
63 ManualControls mManualControls;
64};
65
66#endif
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfManualGuidance.hpp:29
double mThrottle
Definition WsfManualGuidance.hpp:41
double mStickY
Definition WsfManualGuidance.hpp:39
double mPedals
Definition WsfManualGuidance.hpp:40
ManualControls()
Definition WsfManualGuidance.hpp:31
double mStickX
Definition WsfManualGuidance.hpp:38
virtual void Update(double aSimTime)
Definition WsfManualGuidance.hpp:51
virtual bool ProcessInput(UtInput &aInput)
Definition WsfManualGuidance.hpp:50
void SetManualInputs(ManualControls &aControl)
Definition WsfManualGuidance.hpp:59
WsfManualGuidance()
Definition WsfManualGuidance.hpp:44
virtual void BeginManualControl()=0
virtual void EndManualControl()=0
virtual bool Initialize(double aSimTime)
Definition WsfManualGuidance.hpp:49
ManualControls & GetManualInputs(void)
Definition WsfManualGuidance.hpp:60
Copyrights Multiple, All Rights Reserved