Project

General

Profile

Revision 1401

Tested rangefinders to see if they are #define'd correctly. See data/rangefinder for details.

View differences:

test_rangefinder.c
46 46
    // orbs RED when IR2 reads -1
47 47
    // orbs GREEN when IR2 gets a useable reading
48 48
    // times out after TEST_TIME elapsed
49
    while (rtc_get() - start_time < TEST_TIME) {
50
	distance = range_read_distance(IR2);
49
    while (1) {
50
	distance = range_read_distance(IR5);
51 51
	// unusable reading
52 52
	if (distance == -1)
53 53
	    orb_set_color(RED);

Also available in: Unified diff