MonoBrick EV3 Firmware
Public Member Functions | List of all members
MonoBrickFirmware.Sensors.HiTecTiltSensor Class Reference

HiTechnic tilt compass sensor More...

Inheritance diagram for MonoBrickFirmware.Sensors.HiTecTiltSensor:
MonoBrickFirmware.Sensors.I2CSensor MonoBrickFirmware.Sensors.ISensor

Public Member Functions

 HiTecTiltSensor (SensorPort port)
 Initializes a new instance of the MonoBrick.NXT.HiTecCompass class. More...
 
Position ReadPosition ()
 Reads the X Y Z position More...
 
override string ReadAsString ()
 Reads the sensor value as a string. More...
 
override void SelectNextMode ()
 Selects the next mode. More...
 
override string GetSensorName ()
 Gets the name of the sensor. More...
 
override void SelectPreviousMode ()
 Selects the previous mode. More...
 
override int NumberOfModes ()
 Numbers the of modes. More...
 
override string SelectedMode ()
 .m.-, More...
 
- Public Member Functions inherited from MonoBrickFirmware.Sensors.I2CSensor
 I2CSensor (SensorPort port, byte address, I2CMode mode)
 

Additional Inherited Members

- Public Attributes inherited from MonoBrickFirmware.Sensors.I2CSensor
const int BufferSize = 30
 
- Protected Member Functions inherited from MonoBrickFirmware.Sensors.I2CSensor
void Reset ()
 
void SetMode ()
 
bool Initialise ()
 
byte[] ReadRegister (byte register)
 Reads a 8 byte register from the sensor More...
 
byte[] ReadRegister (byte register, byte rxLength)
 Reads a register from the sensor More...
 
void WriteRegister (byte register, byte data)
 Writes a byte to a register. More...
 
void WriteRegister (byte register, byte[] data)
 
byte[] WriteAndRead (byte register, byte[] data, int rxLength)
 Write and read an array of bytes to the sensor More...
 
- Protected Attributes inherited from MonoBrickFirmware.Sensors.I2CSensor
byte I2CAddress = 0x00
 
const int NumberOfSensorPorts = SensorManager.NumberOfSensorPorts
 
SensorPort port
 
I2CMode mode
 
- Properties inherited from MonoBrickFirmware.Sensors.I2CSensor
UARTMode uartMode [get, set]
 
SensorPort Port [get]
 

Detailed Description

HiTechnic tilt compass sensor

Constructor & Destructor Documentation

MonoBrickFirmware.Sensors.HiTecTiltSensor.HiTecTiltSensor ( SensorPort  port)
inline

Initializes a new instance of the MonoBrick.NXT.HiTecCompass class.

Member Function Documentation

override string MonoBrickFirmware.Sensors.HiTecTiltSensor.GetSensorName ( )
inlinevirtual

Gets the name of the sensor.

Returns
The sensor name.

Implements MonoBrickFirmware.Sensors.I2CSensor.

override int MonoBrickFirmware.Sensors.HiTecTiltSensor.NumberOfModes ( )
inlinevirtual

Numbers the of modes.

Returns
The number of modes

Implements MonoBrickFirmware.Sensors.I2CSensor.

override string MonoBrickFirmware.Sensors.HiTecTiltSensor.ReadAsString ( )
inlinevirtual

Reads the sensor value as a string.

Returns
The value as a string

Implements MonoBrickFirmware.Sensors.I2CSensor.

Position MonoBrickFirmware.Sensors.HiTecTiltSensor.ReadPosition ( )
inline

Reads the X Y Z position

Returns
The X Y Z position
override string MonoBrickFirmware.Sensors.HiTecTiltSensor.SelectedMode ( )
inlinevirtual

.m.-,

Returns
The mode.

Implements MonoBrickFirmware.Sensors.I2CSensor.

override void MonoBrickFirmware.Sensors.HiTecTiltSensor.SelectNextMode ( )
inlinevirtual

Selects the next mode.

Implements MonoBrickFirmware.Sensors.I2CSensor.

override void MonoBrickFirmware.Sensors.HiTecTiltSensor.SelectPreviousMode ( )
inlinevirtual

Selects the previous mode.

Implements MonoBrickFirmware.Sensors.I2CSensor.


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