3 #ifndef TACTIGON_BGDM_H_ 4 #define TACTIGON_BGDM_H_ 7 extern void printToArduino(
char *p);
17 typedef void (*BGDM_evt_cb)(uint8_t *pData, uint8_t dataLen);
137 virtual void setParams(
void *) {};
138 virtual void printPar(
void) = 0;
139 virtual void evalGest(
void) = 0;
191 void engineRun(
void);
197 int configGest(
BGDM_gestures gestureID, Gesture_params *pPar);
203 int installEventCB(
BGDM_gestures gestureID, BGDM_evt_cb pCBFuncPointer);
209 unsigned char m_enabledGestures[ALL];
211 Gesture *m_GestArray[ALL];
223 class Roll_Gesture :
public Gesture
226 Roll_Gesture(
T_BGDM *pEngine);
227 void setParams(
void *);
244 unsigned int m_stillTimeStart;
245 eSTATS_MACHINE m_stat;
246 unsigned int m_HST_FACT_PERC;
247 unsigned int m_STILL_TIME;
256 class Pitch_Gesture :
public Gesture
259 Pitch_Gesture(
T_BGDM *pEngine);
260 void setParams(
void *);
277 unsigned int m_stillTimeStart;
278 eSTATS_MACHINE m_stat;
279 unsigned int m_HST_FACT_PERC;
280 unsigned int m_STILL_TIME;
289 class Yaw_Gesture :
public Gesture
292 Yaw_Gesture(
T_BGDM *pEngine);
293 void setParams(
void *);
311 unsigned int m_stillTimeStart;
312 eSTATS_MACHINE m_stat;
313 unsigned int m_HST_FACT_PERC;
314 unsigned int m_STILL_TIME;
326 class GenMov_X_Gesture :
public Gesture
329 GenMov_X_Gesture(
T_BGDM *pEngine);
330 void setParams(
void *);
347 unsigned int m_stillTimeStart;
348 eSTATS_MACHINE m_stat;
349 unsigned int m_HST_FACT_PERC;
358 class GenMov_Y_Gesture :
public Gesture
361 GenMov_Y_Gesture(
T_BGDM *pEngine);
362 void setParams(
void *);
379 unsigned int m_stillTimeStart;
380 eSTATS_MACHINE m_stat;
381 unsigned int m_HST_FACT_PERC;
389 class GenMov_Z_Gesture :
public Gesture
392 GenMov_Z_Gesture(
T_BGDM *pEngine);
393 void setParams(
void *);
410 unsigned int m_stillTimeStart;
411 eSTATS_MACHINE m_stat;
412 unsigned int m_HST_FACT_PERC;
422 class GenRot_X_Gesture :
public Gesture
425 GenRot_X_Gesture(
T_BGDM *pEngine);
426 void setParams(
void *);
443 unsigned int m_stillTimeStart;
444 eSTATS_MACHINE m_stat;
445 unsigned int m_HST_FACT_PERC;
453 class GenRot_Y_Gesture :
public Gesture
456 GenRot_Y_Gesture(
T_BGDM *pEngine);
457 void setParams(
void *);
474 unsigned int m_stillTimeStart;
475 eSTATS_MACHINE m_stat;
476 unsigned int m_HST_FACT_PERC;
484 class GenRot_Z_Gesture :
public Gesture
487 GenRot_Z_Gesture(
T_BGDM *pEngine);
488 void setParams(
void *);
505 unsigned int m_stillTimeStart;
506 eSTATS_MACHINE m_stat;
507 unsigned int m_HST_FACT_PERC;
unsigned int stillTime
Definition: tactigon_BGDM.h:102
Definition: tactigon_BGDM.h:52
int threshold
Definition: tactigon_BGDM.h:45
unsigned int stillTime
Definition: tactigon_BGDM.h:112
Definition: tactigon_BGDM.h:42
unsigned int angleNormalized
Definition: tactigon_BGDM.h:68
Definition: tactigon_BGDM.h:165
int stillTime
Definition: tactigon_BGDM.h:46
unsigned int angleNormalized
Definition: tactigon_BGDM.h:91
int threshold
Definition: tactigon_BGDM.h:35
float threshold
Definition: tactigon_BGDM.h:101
Definition: tactigon_BGDM.h:108
Definition: tactigon_BGDM.h:118
Definition: tactigon_BGDM.h:98
Definition: tactigon_BGDM.h:86
Definition: tactigon_BGDM.h:74
Definition: tactigon_BGDM.h:63
Definition: tactigon_BGDM.h:32
Definition: tactigon_BGDM.h:161
unsigned int stillTime
Definition: tactigon_BGDM.h:67
unsigned int stillTime
Definition: tactigon_BGDM.h:90
float threshold
Definition: tactigon_BGDM.h:121
Definition: tactigon_BGDM.h:167
int stillTime
Definition: tactigon_BGDM.h:36
Definition: tactigon_BGDM.h:159
float threshold
Definition: tactigon_BGDM.h:66
float threshold
Definition: tactigon_BGDM.h:77
Definition: tactigon_BGDM.h:149
int threshold
Definition: tactigon_BGDM.h:55
Definition: tactigon_BGDM.h:157
Definition: tactigon_BGDM.h:158
Definition: tactigon_BGDM.h:162
unsigned int stillTime
Definition: tactigon_BGDM.h:122
float threshold
Definition: tactigon_BGDM.h:89
int stillTime
Definition: tactigon_BGDM.h:56
Definition: tactigon_BGDM.h:166
BGDM_gestures
Definition: tactigon_BGDM.h:155
unsigned int stillTime
Definition: tactigon_BGDM.h:78
float threshold
Definition: tactigon_BGDM.h:111
Definition: tactigon_BGDM.h:163
unsigned int angleNormalized
Definition: tactigon_BGDM.h:79