global.h File Reference

#include <avr/io.h>
#include <avr/interrupt.h>
#include <math.h>
#include <stdlib.h>
#include <avr/delay.h>

Include dependency graph for global.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  envPosition
struct  State

Defines

#define DELAY_TIME   300L
#define EXPLORATION_EGREEDY   0
#define EXPLORATION_VALUE_BASED   1
#define F_CPU   16000000UL
#define MAX_STATES   200
#define NUM_ACTIONS   0x04
#define STATESIZE   sizeof(State)

Typedefs

typedef struct envPosition ENV_POS
typedef struct State STATE

Enumerations

enum  ActionSet {
  UP, DOWN, LEFT, RIGHT,
  NONE
}
enum  mainModes {
  MAIN_MODE_WALK_POLICY, MAIN_MODE_EXPLORE_FEEDBACK, MAIN_MODE_LEARN, MAIN_MODE_STOP,
  MAIN_MODE_UNCHANGED
}
enum  SoftwareMode { SENSOR_MODE, ROBOT_STANDALONE }

Functions

void operator delete (void *ptr)
void operator delete[] (void *ptr)
void * operator new (size_t size)
void * operator new[] (size_t size)


Define Documentation

#define DELAY_TIME   300L

time that a servo needs for the movement from LEFT to RIGHT

Definition at line 34 of file global.h.

Referenced by ValueIteration::moveAndSaveFeedback().

#define EXPLORATION_EGREEDY   0

Exploration Modes

Definition at line 66 of file global.h.

Referenced by ValueIteration::doExploration(), and ValueIteration::ValueIteration().

#define EXPLORATION_VALUE_BASED   1

Definition at line 67 of file global.h.

Referenced by ValueIteration::doExploration(), and ValueIteration::ValueIteration().

#define F_CPU   16000000UL

CPU clock

Definition at line 21 of file global.h.

Referenced by I2c::I2c().

#define MAX_STATES   200

Maximum size of statespace (amount of states)

Definition at line 28 of file global.h.

Referenced by V24Control::processSetGridsize().

#define NUM_ACTIONS   0x04

#define STATESIZE   sizeof(State)

determine the amount of memory-bytes which a state requires

Definition at line 61 of file global.h.

Referenced by StateSpace::getState(), V24Control::processGetState(), V24Control::processSetState(), and StateSpace::setState().


Typedef Documentation

typedef struct envPosition ENV_POS

typedef struct State STATE


Enumeration Type Documentation

enum ActionSet

Action Set

Enumerator:
UP 
DOWN 
LEFT 
RIGHT 
NONE 

Definition at line 39 of file global.h.

00039 {UP, DOWN, LEFT, RIGHT, NONE};

enum mainModes

Main modes

Enumerator:
MAIN_MODE_WALK_POLICY 
MAIN_MODE_EXPLORE_FEEDBACK 
MAIN_MODE_LEARN 
MAIN_MODE_STOP 
MAIN_MODE_UNCHANGED 

Definition at line 73 of file global.h.

Software mode

Enumerator:
SENSOR_MODE 
ROBOT_STANDALONE 

Definition at line 45 of file global.h.


Function Documentation

void operator delete ( void *  ptr  ) 

Definition at line 19 of file global.c.

00020 {
00021   free(ptr);
00022 }

void operator delete[] ( void *  ptr  ) 

Definition at line 29 of file global.c.

00030 {
00031     free(ptr);
00032 } 

void* operator new ( size_t  size  ) 

support for new- and delete-operators

Definition at line 14 of file global.c.

00015 {
00016   return malloc(size);
00017 }

void* operator new[] ( size_t  size  ) 

Definition at line 24 of file global.c.

00025 {
00026     return malloc(size);
00027 }


Generated on Wed Nov 25 11:27:42 2009 for Crawling Robot Microcontroller Software by  doxygen 1.5.5