#include <stdio.h>
 
#if _WIN32 || _WIN64
#include <windows.h>
static void sleep_ms(int time) {
    Sleep(time);
}
#else
#include <unistd.h>
static void sleep_ms(int time) {
    usleep(time * 1000);
}
#endif
 
 
    
    char* serial_number = NULL;
 
    printf("Entered calibration mode for eye tracker with serial number %s \n.", serial_number);
 
    
    
    {
        #define NUM_OF_POINTS  3U
 
                {{0.0f, 0.0f, 1000.0f}, {20.0f, 0.0f, 1000.0f}, {0.0f, 20.0f, 1000.0f}};
        size_t i = 0;
 
 
        for(; i < NUM_OF_POINTS; i++) {
            printf(
"Show a point on screen at (%f,%f).\n", point->
x, point->
y);
 
            
            sleep_ms(700);
 
            printf(
"Collecting data at (%f,%f,%f).\n", point->
x, point->
y, point->
z);
                
                
            }
        }
 
 
        printf("Computing and applying calibration.\n");
 
                printf("Calibration was successful!\n");
                printf("Calibration failed!\n");
        }
 
    }
    
 
    printf("Left calibration mode.\n");
 
}