Revision 1305 trunk/code/projects/diagnostic_station/station/test_encoders.c

View differences:

test_encoders.c
60 60
		
61 61
		// Read the robot encoders
62 62
		robot_read_encoders (&(data_robot_l[m]), &(data_robot_r[m]));
63
		
64
		//usb_puts ("# I readed teh encoders: ");
65
		//usb_puti (data_robot_l[m]);
66
		//usb_puts (" ");
67
		//usb_puti (data_robot_r[m]);
68
		//usb_puts (NL);
69

  
63 70
	}
64 71

  
65 72
	send_encoder_data (0, direction1, data_station_l, data_robot_l, num_measurements);
......
76 83
// ** Public functions **
77 84
// **********************
78 85

  
79
#define NUM 4
86
// Encoder readings seem to be unreliable with these values (on too long?)
87
//#define NUM 4
88
//#define VEL 200
89
//#define ON_DELAY 500
90
//#define OFF_DELAY 800
91

  
92
// Testing values
93
#define NUM 8
80 94
#define VEL 200
81
#define ON_DELAY 500
82
#define OFF_DELAY 800
95
#define ON_DELAY 150
96
#define OFF_DELAY 400
83 97

  
84 98
void test_encoder_all (void)
85 99
{

Also available in: Unified diff