LoRemote.h File Reference

Responding to the Roomba Remote. More...

Go to the source code of this file.

Functions

void lo_remote (void)
char lo_remote_pending (void)
void lo_send_remote (void)
 Send pending remote control acknowledgement to the high level.
char lo_is_remote_control (void)
char lo_remote_quit (void)

Detailed Description

Responding to the Roomba Remote.

This file defines an API for checking whether the iRobot Create has received any IR commands from the Roomba Remote and taking appropriate action depending on the remote control button pressed.

Definition in file LoRemote.h.


Function Documentation

char lo_is_remote_control ( void   ) 

Returns true if the user is remote controlling the robot; false if the robot is operating autonomously.

Definition at line 235 of file LoRemote.c.

void lo_remote ( void   ) 

This function reacts to the Roomba Remote commands. If a remote command was indeed sent by the user and handled by the low-level controller, it sets a flag to indicate to the main program that a remote control acknowledgement needs to be sent to the high level.

Definition at line 179 of file LoRemote.c.

References lo_get_sensor(), lo_ticks(), and LOBOT_SENSORS_INFRARED_BYTE.

char lo_remote_pending ( void   ) 

This function returns true if Robolocust's low-level Command Module control program reacted to a Roomba Remote button press and needs to send an acknowledgement to the high level letting it know what the low level did.

Definition at line 216 of file LoRemote.c.

References LOBOT_ACK_REMOTE.

char lo_remote_quit ( void   ) 

Returns true if the Roomba Remote's 'P' button has been pressed; false otherwise.

NOTE: In addition to the 'P' button, the Roomba Remote's "Spot" and "Max" buttons may also be used to quit the low-level controller.

Definition at line 242 of file LoRemote.c.

void lo_send_remote ( void   ) 

Send pending remote control acknowledgement to the high level.

Definition at line 222 of file LoRemote.c.

References lo_tx(), and LOBOT_REMOTE_SIZE.

Generated on Sun May 8 08:17:11 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3