#include <stdint.h>
Go to the source code of this file.
#define AUTOTURN_RADIUS 350 |
#define DRIVE_STRAIGHT 32768 |
Data special cases
Definition at line 36 of file roomba.h.
#define SENSOR_ALL_DATA 0 |
Roomba serial opcodes
Definition at line 14 of file roomba.h.
void Roomba_Drive |
( |
int16_t |
velocity, |
|
|
int16_t |
radius |
|
) |
| |
Tells the roomba to drive with the given velocity and radius
Definition at line 50 of file roomba.c.
void Roomba_Init |
( |
void |
| ) |
|
Wakes Roomba from sleep and sets it to safe mode
Definition at line 13 of file roomba.c.
void Roomba_Play |
( |
uint8_t |
song | ) |
|
Plays the song corresponding to a song # from 0-4
Definition at line 61 of file roomba.c.
void Roomba_QueryList |
( |
uint8_t |
packet1, |
|
|
uint8_t |
packet2 |
|
) |
| |
Requests multiple packets from the Roomba
Definition at line 77 of file roomba.c.
void Roomba_Sensors |
( |
uint8_t |
packet_id | ) |
|
Requests a packet from the Roomba about a specific sensor
Definition at line 69 of file roomba.c.
void Roomba_Song |
( |
uint8_t |
n | ) |
|
Loads a song onto the Roomba
Definition at line 87 of file roomba.c.