12 #include "GloveCalibration.h"
13 #include "GloveObject.h"
14 #include "GlovePlugin.h"
42 bool GloveCalibration::GetIsRunning()
50 time_t startTime, currentTime;
55 OBJpostEvent(GLOVE_CALIBRATION_START_CB, (
int)glove, 0);
57 MMechostr(MSKDEBUG,
"-> Beginning of calibration... \n");
58 fdResetCalibrationAll(glove->GetGlove());
61 fdSetAutoCalibrate(glove->GetGlove(), TRUE);
70 }
while ((currentTime - startTime) < 5);
73 fdSetAutoCalibrate(glove->GetGlove(), FALSE);
78 OBJpostEvent(GLOVE_CALIBRATION_END_CB, (
int)glove, 0);
80 MMechostr(MSKDEBUG,
"-> Calibration done for %s.\n", glove->GetTypeName().c_str());