Revision 189
Addition of charging detection. (Miriam)
branches/autonomous_recharging/code/projects/autonomous_recharging/dragonfly/recharge.c | ||
---|---|---|
153 | 153 |
|
154 | 154 |
//TODO: check if battery is charging |
155 | 155 |
//if (battery is charging) |
156 |
if (button2_click())
|
|
156 |
if (recharge_i2c_is_battery_charging())
|
|
157 | 157 |
{ |
158 | 158 |
wl_recharge_dock(); |
159 | 159 |
move(0, 0); |
branches/autonomous_recharging/code/projects/autonomous_recharging/dragonfly/Makefile | ||
---|---|---|
15 | 15 |
USE_WIRELESS = 1 |
16 | 16 |
|
17 | 17 |
# com1 = serial port. Use lpt1 to connect to parallel port. |
18 |
AVRDUDE_PORT = /dev/ttyUSB2
|
|
18 |
AVRDUDE_PORT = COM4
|
|
19 | 19 |
# |
20 | 20 |
# |
21 | 21 |
################################### |
Also available in: Unified diff