Project

General

Profile

Revision 1127

Put smart run around FSM in autonomous mapping program
Robot goes into BACKWARDS mode a few seconds after starting up and apparently cannot be diverted

View differences:

trunk/code/projects/mapping/test/Makefile
4 4

  
5 5
# Relative path to the root directory (containing lib directory)
6 6
ifndef COLONYROOT
7
COLONYROOT = ../../..
7
COLONYROOT = ../../../..
8 8
endif
9 9

  
10 10
# Target file name (without extension).
trunk/code/projects/mapping/auto/robot_main.c
2 2
#include <wireless.h>
3 3
#include <encoders.h>
4 4
#include "odometry.h"
5
#include "smart_run_around_fsm.h"
5 6

  
6 7
#define POLLING_INTERVAL 50    //interval in ms to get sensor data
7 8
#define MAP 1	// packet group for sending data points
......
14 15
    /* initialize components and join the token ring */
15 16
    dragonfly_init(ALL_ON);
16 17
    odometry_init();
18
    run_around_init();
17 19
    orb_enable();
18 20
    wl_init();
19 21
    wl_set_channel(0xE);
......
50 52
		send = (char*) store;	// convert to char for wireless
51 53

  
52 54
		wl_send_global_packet(MAP, ODO, send, 18, 0);
55

  
56
		run_around_FSM();
53 57
    }
54 58

  
55 59
    wl_terminate();

Also available in: Unified diff