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


Go to the source code of this file.
Data Structures | |
| struct | State |
Defines | |
| #define | DELAY_TIME 800L |
| #define | DOWN 0x01 |
| #define | EXPLORATION_EGREEDY 0 |
| #define | EXPLORATION_VALUE_BASED 1 |
| #define | F_CPU 11059200UL |
| #define | LEFT 0x02 |
| #define | MAX_STATES 200 |
| #define | NONE 0x04 |
| #define | NUM_ACTIONS 0x04 |
| #define | RIGHT 0x03 |
| #define | STATESIZE sizeof(State) |
| #define | UP 0x00 |
Typedefs | |
| typedef struct State | STATE |
| #define DELAY_TIME 800L |
time that a servo needs for the movement from LEFT to RIGHT
Definition at line 31 of file global.h.
Referenced by ValueIteration::moveAndSaveFeedback().
| #define DOWN 0x01 |
Definition at line 37 of file global.h.
Referenced by ValueIteration::evaluateAction(), ValueIteration::exploreAllFeedbacks(), StateSpace::getFeedback(), ValueIteration::gotoRandomState(), ValueIteration::isValidAction(), ValueIteration::moveAndSaveFeedback(), and StateSpace::setFeedback().
| #define EXPLORATION_EGREEDY 0 |
Exploration Modes
Definition at line 63 of file global.h.
Referenced by ValueIteration::doExploration(), and ValueIteration::init().
| #define EXPLORATION_VALUE_BASED 1 |
Definition at line 64 of file global.h.
Referenced by ValueIteration::doExploration(), and ValueIteration::init().
| #define LEFT 0x02 |
Definition at line 38 of file global.h.
Referenced by ValueIteration::evaluateAction(), ValueIteration::exploreAllFeedbacks(), StateSpace::getFeedback(), ValueIteration::gotoRandomState(), ValueIteration::isValidAction(), ValueIteration::moveAndSaveFeedback(), and StateSpace::setFeedback().
| #define MAX_STATES 200 |
Maximum size of statespace (amount of states)
Definition at line 25 of file global.h.
Referenced by V24Control::processSetGridsize().
| #define NUM_ACTIONS 0x04 |
Definition at line 41 of file global.h.
Referenced by ValueIteration::getGreedyAction(), ValueIteration::getRandomAction(), V24Control::processGetDebug(), and ValueIteration::valueIterateAllStates().
| #define RIGHT 0x03 |
Definition at line 39 of file global.h.
Referenced by ValueIteration::evaluateAction(), ValueIteration::exploreAllFeedbacks(), StateSpace::getFeedback(), ValueIteration::gotoRandomState(), ValueIteration::isValidAction(), ValueIteration::moveAndSaveFeedback(), and StateSpace::setFeedback().
| #define STATESIZE sizeof(State) |
determine the amount of memory-bytes which a state requires
Definition at line 57 of file global.h.
Referenced by StateSpace::getState(), V24Control::processGetState(), V24Control::processSetState(), and StateSpace::setState().
| #define UP 0x00 |
Action Set
Definition at line 36 of file global.h.
Referenced by ValueIteration::evaluateAction(), ValueIteration::exploreAllFeedbacks(), StateSpace::getFeedback(), ValueIteration::gotoRandomState(), ValueIteration::isValidAction(), ValueIteration::moveAndSaveFeedback(), and StateSpace::setFeedback().
1.5.5