NXShield  v1.07
NXShield Library Reference by OpenElectrons.com
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
SumoEyes Class Reference

This class interfaces with NXTSumoEyes sensor attached to NXShield. More...

#include <SumoEyes.h>

Inheritance diagram for SumoEyes:
NXShieldAGS

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
NXShieldmp_shield
 
SH_BankPort m_bp
 

Detailed Description

This class interfaces with NXTSumoEyes sensor attached to NXShield.

Member Function Documentation

SE_Zone SumoEyes::detectObstacleZone ( )

detect the where the obstacle is

bool SumoEyes::init ( NXShield shield,
SH_BankPort  bp 
)

initialize the SumoEyes with a pointer to the NXShield and the bankport it is connected to

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


The documentation for this class was generated from the following files: