#include "robotdo.h"
#include "robotu.h"
#include <avr/eeprom.h>
#include <avr/interrupt.h>
Go to the source code of this file.
Functions | |
void | do_boredom () |
Behaviour for standart operation. | |
void | do_sleep () |
Behaviour for sleeping. | |
void | do_connected () |
void | do_searching () |
void | do_empty () |
Behaviour for empty. | |
void | do_flee () |
Behaviour for flee. | |
void | do_script () |
void | do_ircont () |
Every modus, besides the fast radar and ir-transmitting modes, has a function do_<modus>. These is called once every 0.5 ms or about 1900Hz (depending on the speed of them). Basic routines like decode_position() or drive() are called before the do-functions.
Definition in file robotdo.c.
|
Behaviour for standart operation. In normal operation the robot will drive around and do measure the distance with his radar. Definition at line 14 of file robotdo.c. Referenced by SIGNAL(). |
|
Behaviour for empty. When the loading station is not reachable and the voltage sinks under 3,5V the robot goes to this modus. It will send three beeps out and tries to save energy. By putting hin to the loadingstation it will "wake up". Definition at line 214 of file robotdo.c. Referenced by SIGNAL(). |
|
Behaviour for flee. When the robot stays around and someone pushes him he tries to resist first. After a while he flees and drives away. Definition at line 221 of file robotdo.c. Referenced by SIGNAL(). |
|
Behaviour for sleeping. When the surrounding light is too less the robot will fall in a sleep mode. It will snore a bit and remain quiet until the light gehts brighter. Definition at line 34 of file robotdo.c. Referenced by SIGNAL(). |