#include <Robot.h>
creates an instance of the class Robot
bool Robot::areThereObstacles |
( |
| ) |
|
Reads IR obstacles sensors and sends commands to motors avoiding obstacles.
- Returns
- true if obstacles detected, false otherwise
unsigned int Robot::EEPROMReadInt |
( |
int |
p_address | ) |
|
Reads an integer from the EEPROM.
- Parameters
-
p_address | the address from where the value is to be read from |
- Returns
- the value read
void Robot::EEPROMWriteInt |
( |
int |
p_address, |
|
|
int |
p_value |
|
) |
| |
Writes an integer to the EEPROM.
- Parameters
-
p_address | the address where the value is to be written |
p_value | the value to be written |
Configures the robot to be used with Bot'n Roll One.
Reads saved configuration values (e.g. speed and other parameters) from the EEPROM Writes a welcome message to the LCD Launches the Menu
Launches the Menu for User Interface.
void Robot::readEEPROM |
( |
| ) |
|
Stores all the relevant values on the EEPROM (e.g. speed and other parameters)
int Robot::readLineSensors |
( |
unsigned int * |
sensor_values | ) |
|
void Robot::readQTR8A |
( |
unsigned int * |
line | ) |
|
Read the calibrated line Sensor.
void Robot::sendToMotors |
( |
MoveType |
robotMove, |
|
|
char |
lineSignature |
|
) |
| |
Sends commands to motors.
- Parameters
-
robotMove | the type of movement to be performed |
void Robot::writeEEPROM |
( |
| ) |
|
Reads all the saved values from the EEPROM (e.g. speed and other parameters)
when true sends debug messages to LCD/Serial interface
int Robot::_leftWheelSpeed |
Non-linear control values.
the interface to the Bot'n Roll One A
the pause in milliseconds for 90º fixed turnings
int Robot::_rightWheelSpeed |
the reference speed of the robot
The documentation for this class was generated from the following files: