#include <stdio.h>
#include <signal.h>
static int running = 0;
static void __signal_handler(__attribute__ ((unused)) int dummy)
{
running=0;
return;
}
int main()
{
int i;
fprintf(stderr,"ERROR: failed to run rc_encoder_eqep_init\n");
return -1;
}
signal(SIGINT, __signal_handler);
running=1;
printf("\nRaw encoder positions\n");
printf(" E1 |");
printf(" E2 |");
printf(" E3 |");
printf(" \n");
while(running){
printf("\r");
for(i=1;i<=3;i++){
}
fflush(stdout);
}
printf("\n");
return 0;
}