Project

General

Profile

Statistics
| Revision:

root / trunk / code / behaviors / template / main.c @ 1498

History | View | Annotate | Download (399 Bytes)

1
#include <dragonfly_lib.h>
2
#include <wl_basic.h>
3

    
4
#define TIME_DELAY 5000
5

    
6
int main (void) {
7

    
8
        dragonfly_init(ALL_ON);
9
        xbee_init();
10
        encoders_init();
11
        
12
        while (1) {
13
                orbs_set_color(RED, GREEN);
14
                motor_l_set(FORWARD, 160);
15
                motor_r_set(FORWARD, 255);
16
                delay_ms(TIME_DELAY);
17

    
18
                orbs_set_color(PURPLE, BLUE);
19
                motor_l_set(FORWARD, 255);
20
                motor_r_set(FORWARD, 160);
21
                delay_ms(TIME_DELAY);
22
        }
23

    
24
}