Project

General

Profile

Revision 138

More progress on charging... Sometimes the token ring drops out.

View differences:

seeking.c
67 67

  
68 68
	//check if we can use homing sensor
69 69
	int widthcount = recharge_i2c_get_homing_reading();
70
	//RECHARGE_DEBUG_PUTI(widthcount);
71 70
	
72 71
	if(widthcount>= 4)
73 72
		return SEEK_WITH_HOMING;
......
78 77
{
79 78
	//TODO: create function in homing.h to return LEFT, FORWARD, RIGHT, or NONE
80 79
	int widthcount = recharge_i2c_get_homing_reading();
81
	RECHARGE_DEBUG_PRINT("Homing sensor: ");
82
	RECHARGE_DEBUG_PUTI(widthcount);
83
	RECHARGE_DEBUG_PRINT("\n");
84 80

  
85 81
	if (widthcount < LEFT_LOW) //can't use beacon, switch to BOM
86 82
		return SEEK_WITH_BOM;

Also available in: Unified diff