Project

General

Profile

Revision 126

Fixed problems with motors, error in charging station delay_ms for BOM.

View differences:

recharge.c
2 2
#include <battery.h>
3 3
#include <dio.h>
4 4
#include <lights.h>
5
#include <motor.h>
6
#include <serial.h>
5 7

  
6 8
#include <wl_defs.h>
7 9
#include "wl_recharge_group.h"
......
29 31
{
30 32
	wl_recharge_register();
31 33
	//TODO: uncomment to use homing sensor
32
	//recharge_i2c_init();
34
	recharge_i2c_init();
33 35
}
34 36

  
35 37
/**
......
166 168
	//TODO: implement
167 169
	//if (battery is charged)
168 170
	if (button2_click())
171
	{
172
		motors_off();
169 173
		wl_recharge_depart();
174
	}
170 175
}
171 176

  
172 177
/**

Also available in: Unified diff