15 #ifndef EMULATEDCONTROLLER_H
16 #define EMULATEDCONTROLLER_H
18 #include <TargetController.h>
32 namespace flair {
namespace sensor {
42 enum class ButtonType : uint16_t {
43 start=0x0001,select=0x0002,square=0x0004,triangle=0x0008,
44 circle=0x0010,cross=0x0020,left1=0x0040,left2=0x0080,
45 left3=0x0100,right1=0x0200,right2=0x0400,right3=0x0800,
46 up=0x1000,down=0x2000,left=0x4000,right=0x8000
48 void AddStep(
unsigned int durationMs,std::string description,uint16_t buttonPressed,
float leftAxisX,
float leftAxisY,
float rightAxisX,
float rightAxisY);
50 bool IsConnected()
const;
53 bool IsDataFrameReady();
56 bool ControllerInitialization();
59 enum class DataType { axis,button };
60 void ComputeControllerData(DataType dataType,
core::Matrix &data);
61 template<
typename T>
void fillVectorNoMutex(
core::Matrix &vector,T data[],
unsigned int size);
64 unsigned int durationMs;
67 std::string description;
70 std::list<StepData> steps;
75 #endif // EMULATEDCONTROLLER_H
namespace of the flair Framework
Definition: Ahrs.h:19
Base Class for target side remote controls.
Definition: TargetController.h:49
Emulated remote control.
Definition: EmulatedController.h:38
Class defining a matrix.
Definition: Matrix.h:31