NXShield
v1.07
NXShield Library Reference by OpenElectrons.com
|
This class interfaces with NXTSumoEyes sensor attached to NXShield. More...
#include <SumoEyes.h>
Public Member Functions | |
bool | init (NXShield *shield, SH_BankPort bp) |
bool | setType (int8_t type) |
bool | setLongRange () |
bool | setShortRange () |
SE_Zone | detectObstacleZone () |
char * | OBZoneToString (SE_Zone ob) |
Public Member Functions inherited from NXShieldAGS | |
NXShieldAGS () | |
NXShieldAGS (NXShield *shield, SH_BankPort bp) | |
bool | setType (uint8_t type) |
int | readRaw () |
bool | init (NXShield *shield, SH_BankPort bp) |
Additional Inherited Members | |
Public Attributes inherited from NXShieldAGS | |
NXShield * | mp_shield |
SH_BankPort | m_bp |
This class interfaces with NXTSumoEyes sensor attached to NXShield.
SE_Zone SumoEyes::detectObstacleZone | ( | ) |
detect the where the obstacle is
bool SumoEyes::init | ( | NXShield * | shield, |
SH_BankPort | bp | ||
) |
char * SumoEyes::OBZoneToString | ( | SE_Zone | ob | ) |
convert the detected zone to a readable string
bool SumoEyes::setLongRange | ( | ) |
set the analog mode of the sensor to get readings for long range
bool SumoEyes::setShortRange | ( | ) |
set the analog mode of the sensor to get readings for short range
bool SumoEyes::setType | ( | int8_t | type | ) |
set the analog type of the sensor