Project

General

Profile

Revision 1130

moved the smart-runaround stuff from template to a new folder and restored the old template
implemented usb_put* which just outputs to stdio

View differences:

main.c
1 1
#include <dragonfly_lib.h>
2
#include "smart_run_around_fsm.h"
3 2

  
4 3
int main(void)
5 4
{
6
	dragonfly_init(ALL_ON);
7
	//bom_leds_on(BOM_ALL);
8
	//motor1_set(1, 210);
9
	//motor2_set(1, 200);
10
	run_around_init();
11
	while(1){
12
		run_around_FSM();
13
       		simulator_do();
14
  	}
15
	return 0;
5
  int i;
6
  dragonfly_init(ALL_ON);
7

  
8
  motor1_set(1, 200);
9
  motor2_set(1, 150);
10

  
11
  usb_puts("Hello, I am a robot\n");
12

  
13
  while(1){
14
    simulator_do();
15
  }
16
  return 0;
16 17
}
17 18

  
18

  

Also available in: Unified diff