Eric Wu / Mbed 2 deprecated WifiRobot

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

irobotSensorGroup0_t Struct Reference

irobotSensorGroup0_t Struct Reference

Sensor Group 0. More...

#include <irobotSensorTypes.h>

Data Fields

irobotBumps_WheelDrops_t bumps_wheelDrops
 iRobot bump and wheel-drop sensors.
bool wall
 Binary interpretation of the infrared wall sensor; if true, the sensor has read above a predefined threshold and indicates a wall (or object) is in front of the robot.
bool cliffLeft
 Binary interpretation of the left cliff sensor; if true, the sensor has read below a predefined threshold and indicates the sensor is not immediately above ground.
bool cliffFrontLeft
 Binary interpretation of the front left cliff sensor; if true, the sensor has read below a predefined threshold and indicates the sensor is not immediately above ground.
bool cliffFrontRight
 Binary interpretation of the front right cliff sensor; if true, the sensor has read below a predefined threshold and indicates the sensor is not immediately above ground.
bool cliffRight
 Binary interpretation of the right cliff sensor; if true, the sensor has read below a predefined threshold and indicates the sensor is not immediately above ground.
bool virtualWall
 Virtual Wall sensor is a particular infrared packet omitted by a virtual wall device, and received by the IR on top of the robot. If the signal is received, the value is true.
irobotLowSideDriver_WheelOvercurrent_t lowSideDriver_WheelOvercurrent
 iRobot low-side driver and wheel overcurrent sensors.
uint8_t infrared
 Most recently received byte from the IR receiver. A value of 0xFF (255) indicates no byte is being received.
irobotButtons_t buttons
 iRobot button sensors.
int16_t distance
 Distance (in mm) the robot has traveled since the last sensor packet.
int16_t angle
 Angle (in degrees) through which the robot has rotated since the last sensor packet.
irobotChargingState_t chargingState
 iRobot charging state sensor.
uint16_t voltage
 Voltage of the iRobot battery, in mV.
int16_t current
 Current (mA) flowing into or out of the battery. Negative currents indicate current is leaving the battery; positive currents (present in charging) indicate current is entering the battery.
int8_t batteryTemperature
 Temperature of the battery, in degrees Celcius.
uint16_t batteryCharge
 Current charge of the create battery, in mAh.
uint16_t batteryCapacity
 Estimated charging capacity of the battery, in mAh.

Detailed Description

Sensor Group 0.

Definition at line 175 of file irobotSensorTypes.h.


Field Documentation

int16_t angle

Angle (in degrees) through which the robot has rotated since the last sensor packet.

Definition at line 207 of file irobotSensorTypes.h.

uint16_t batteryCapacity

Estimated charging capacity of the battery, in mAh.

Definition at line 225 of file irobotSensorTypes.h.

uint16_t batteryCharge

Current charge of the create battery, in mAh.

Definition at line 222 of file irobotSensorTypes.h.

Temperature of the battery, in degrees Celcius.

Definition at line 219 of file irobotSensorTypes.h.

iRobot bump and wheel-drop sensors.

Definition at line 177 of file irobotSensorTypes.h.

iRobot button sensors.

Definition at line 201 of file irobotSensorTypes.h.

iRobot charging state sensor.

Definition at line 210 of file irobotSensorTypes.h.

Binary interpretation of the front left cliff sensor; if true, the sensor has read below a predefined threshold and indicates the sensor is not immediately above ground.

Definition at line 185 of file irobotSensorTypes.h.

Binary interpretation of the front right cliff sensor; if true, the sensor has read below a predefined threshold and indicates the sensor is not immediately above ground.

Definition at line 187 of file irobotSensorTypes.h.

bool cliffLeft

Binary interpretation of the left cliff sensor; if true, the sensor has read below a predefined threshold and indicates the sensor is not immediately above ground.

Definition at line 183 of file irobotSensorTypes.h.

bool cliffRight

Binary interpretation of the right cliff sensor; if true, the sensor has read below a predefined threshold and indicates the sensor is not immediately above ground.

Definition at line 189 of file irobotSensorTypes.h.

int16_t current

Current (mA) flowing into or out of the battery. Negative currents indicate current is leaving the battery; positive currents (present in charging) indicate current is entering the battery.

Definition at line 216 of file irobotSensorTypes.h.

int16_t distance

Distance (in mm) the robot has traveled since the last sensor packet.

Definition at line 204 of file irobotSensorTypes.h.

uint8_t infrared

Most recently received byte from the IR receiver. A value of 0xFF (255) indicates no byte is being received.

Definition at line 198 of file irobotSensorTypes.h.

iRobot low-side driver and wheel overcurrent sensors.

Definition at line 195 of file irobotSensorTypes.h.

Virtual Wall sensor is a particular infrared packet omitted by a virtual wall device, and received by the IR on top of the robot. If the signal is received, the value is true.

Definition at line 192 of file irobotSensorTypes.h.

uint16_t voltage

Voltage of the iRobot battery, in mV.

Definition at line 213 of file irobotSensorTypes.h.

bool wall

Binary interpretation of the infrared wall sensor; if true, the sensor has read above a predefined threshold and indicates a wall (or object) is in front of the robot.

Definition at line 180 of file irobotSensorTypes.h.