Mindstorms 3rd Party ROBOTC Drivers RobotC
[Home] [Download] [Submit a bug/suggestion] [ROBOTC Forums] [Blog] [Support this project]
Files | Enumerations | Functions | Variables

Sumo Eyes Sensor
[Mindsensors]

Files

file  mindsensors-sumoeyes.h
 

Mindsensors Sumo Eyes Sensor driver.


Enumerations

enum  tObstacleZone { MSSUMO_NONE = 0, MSSUMO_FRONT = 1, MSSUMO_LEFT = 2, MSSUMO_RIGHT = 3 }

Functions

tObstacleZone MSSUMOreadZone (tSensors link)
void MSSUMOsetShortRange (tSensors link)
void MSSUMOsetLongRange (tSensors link)

Variables

TSensorTypes MSSUMOLRType = sensorLightInactive
TSensorTypes MSSUMOSRType = sensorLightActive

Detailed Description

Mindsensors Sumo Eyes Sensor


Enumeration Type Documentation

Enumerator:
MSSUMO_NONE 
MSSUMO_FRONT 
MSSUMO_LEFT 
MSSUMO_RIGHT 

Definition at line 45 of file mindsensors-sumoeyes.h.


Function Documentation

tObstacleZone MSSUMOreadZone ( tSensors  link )

Get the raw value from the sensor

Parameters:
linkthe MSSUMO port number
Returns:
raw value of the sensor
Examples:
mindsensors-sumoeyes-test1.c.

Definition at line 61 of file mindsensors-sumoeyes.h.

void MSSUMOsetLongRange ( tSensors  link )

Set the range of the sensor to long range, this is done by configuring the sensor as sensorLightInactive

Parameters:
linkthe MSSUMO port number
Examples:
mindsensors-sumoeyes-test1.c.

Definition at line 104 of file mindsensors-sumoeyes.h.

void MSSUMOsetShortRange ( tSensors  link )

Set the range of the sensor to short range, this is done by configuring the sensor as sensorLightActive.

Parameters:
linkthe MSSUMO port number
Examples:
mindsensors-sumoeyes-test1.c.

Definition at line 93 of file mindsensors-sumoeyes.h.


Variable Documentation

TSensorTypes MSSUMOLRType = sensorLightInactive

Definition at line 42 of file mindsensors-sumoeyes.h.

TSensorTypes MSSUMOSRType = sensorLightActive

Definition at line 43 of file mindsensors-sumoeyes.h.