LoWheelDrops.c File Reference

Low-level reactions for wheel drop sensors. More...

#include "LoWheelDrops.h"
#include "LoDrive.h"
#include "LoSensors.h"
#include "LoIO.h"
#include "LoCMInterface.h"
#include "LoOpenInterface.h"
Include dependency graph for LoWheelDrops.c:

Go to the source code of this file.

Functions

void lo_wheel_drops (void)
char lo_wheel_drops_pending (void)
void lo_send_wheel_drops (void)
 Send pending wheel drops acknowledgement to the high level.

Variables

static char g_drop

Detailed Description

Low-level reactions for wheel drop sensors.

This file defines the functions that implement the wheel drop sensor action and pending API for the low-level Robolocust control program meant to be run on the iRobot Create's Command Module.

Definition in file LoWheelDrops.c.


Function Documentation

void lo_send_wheel_drops ( void   ) 

Send pending wheel drops acknowledgement to the high level.

Definition at line 96 of file LoWheelDrops.c.

References lo_tx(), and LOBOT_ACK_WHEEL_DROPS.

void lo_wheel_drops ( void   ) 

This function reacts to the iRobot Create's wheel drop sensors. If any of them are indeed active, it sets a flag to indicate to the main program that a wheel drops acknowledgement needs to be sent to the high level.

Definition at line 78 of file LoWheelDrops.c.

References lo_get_sensor(), and lo_stop_immediate.

char lo_wheel_drops_pending ( void   ) 

This function returns true if Robolocust's low-level Command Module control program reacted to the Create robot's wheel drop sensors and needs to send an acknowledgement to the high level letting it know what the low level did.

Definition at line 90 of file LoWheelDrops.c.

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