Project

General

Profile

Revision 116

Updated recharging code for the robot, it actually runs, trying to fix problem with orbs in debugging mode.

View differences:

main.c
1 1
#include <dragonfly_lib.h>
2
#include <wireless.h>
3
#include <wl_token_ring.h>
2 4

  
5
#include "recharge.h"
6

  
3 7
int main(void)
4 8
{
5 9
	dragonfly_init(ALL_ON);
10
	usb_puts("Initializing wireless.\n");
11
	wl_init();
12
	wl_token_ring_register();
13
	wl_token_ring_join();
14
	usb_puts("Wireless initialized.\n");
15
	recharge_init();
16
	usb_puts("Recharging initialized.\n");
17

  
18
	while (1)
19
	{
20
		wl_do();
21
		int charging = recharge_do();
22
		if (!charging)
23
		{
24
			//do stuff
25
		}
26
	}
27
	
6 28
	return 0;
7 29
}
8 30

  

Also available in: Unified diff