15 #ifndef EMULATEDCONTROLLER_H
16 #define EMULATEDCONTROLLER_H
18 #include <TargetController.h>
23 class FrameworkManager;
33 namespace flair {
namespace sensor {
43 enum class ButtonType : uint16_t {
44 start=0x0001,select=0x0002,square=0x0004,triangle=0x0008,
45 circle=0x0010,cross=0x0020,left1=0x0040,left2=0x0080,
46 left3=0x0100,right1=0x0200,right2=0x0400,right3=0x0800,
47 up=0x1000,down=0x2000,left=0x4000,right=0x8000
49 void AddStep(
unsigned int durationMs,std::string description,uint16_t buttonPressed,
float leftAxisX,
float leftAxisY,
float rightAxisX,
float rightAxisY);
51 bool IsConnected()
const;
54 bool IsDataFrameReady();
57 bool ControllerInitialization();
60 enum class DataType { axis,button };
61 void ComputeControllerData(DataType dataType,
core::cvmatrix &data);
62 template<
typename T>
void fillVectorNoMutex(
core::cvmatrix &vector,T data[],
unsigned int size);
65 unsigned int durationMs;
68 std::string description;
71 std::list<StepData> steps;
76 #endif // EMULATEDCONTROLLER_H
namespace of the flair Framework
Definition: Ahrs.h:19
Class defining a matrix of kind CvMat.
Definition: cvmatrix.h:33
Base Class for target side remote controls.
Definition: TargetController.h:49
Main class of the Framework library.
Definition: FrameworkManager.h:45
Emulated remote control.
Definition: EmulatedController.h:39