printf("PT1: %4d PT2: %4d\n", PT1_now, PT2_now);
printf("PT1: %4d\tPT2: %4d\n", PT1_now, PT2_now);
int main(int argc, char *argv[]) {	char PT1[] = "AIN4", PT2[] = "AIN6";	int PT1_val[20], PT2_val[20], PT_sum[20];	int min, min_pos, pos, PT1_now, PT2_now, i;	signal(SIGINT, signal_handler);	init_gpios();	pos = 0;	//clockwise_rotate(&pos);	for(i = 0; i < 20; i++) {		PT1_val[i] = analog_in(PT1);		PT2_val[i] = analog_in(PT2);		printf("PT1: %4d PT2: %4d\n", PT1_val[i], PT2_val[i]);		clockwise_rotate(&pos);		usleep(1000 * 100);	}	for(i = 0; i < 20; i++) {		PT_sum[i] = PT1_val[i] + PT2_val[i];	}	min = PT_sum[0];	for(i = 0; i < 20; i++) {		if(PT_sum[i] < min) {			min = PT_sum[i];			min_pos = i;		}	}	printf("min: %d min_pos: %d\n", min, min_pos);	for(i = 19; i >= 0; i--) {		counter_clockwise_rotate(&pos);		usleep(1000 * 100);		if((i - min_pos) == 0) break;	}	while(keepgoing) {		PT1_now = analog_in(PT1);		usleep(1000 * 100);		PT2_now = analog_in(PT2);		if(PT1_now - PT2_now < 150 && PT1_now - PT2_now > -150) {			usleep(1000 * 100);			//continue;		} else if(PT1_now > PT2_now) {			clockwise_rotate(&pos);		} else if(PT1_now < PT2_now) {			counter_clockwise_rotate(&pos);		}		printf("PT1: %4d PT2: %4d\n", PT1_now, PT2_now);		usleep(1000 * 300);	}	return 0;	}