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"
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 |
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.
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.