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

HiTechnic gyro sensor More...

Inheritance diagram for MonoBrickFirmware.Sensors.HiTecGyroSensor:
MonoBrickFirmware.Sensors.AnalogSensor MonoBrickFirmware.Sensors.ISensor

Public Member Functions

 HiTecGyroSensor (SensorPort port)
 Initializes a new instance of the MonoBrick.NXT.HiTecGyro class without offset More...
 
 HiTecGyroSensor (SensorPort port, int offset)
 Initializes a new instance of the MonoBrick.NXT.HiTecGyro class. More...
 
int ReadAngularAcceleration ()
 Read angular acceleration More...
 
override string ReadAsString ()
 Reads the angular acceleration 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.AnalogSensor
 AnalogSensor (SensorPort port)
 

Properties

int Offset [get, set]
 Gets or sets the offset. More...
 
- Properties inherited from MonoBrickFirmware.Sensors.AnalogSensor
AnalogMode AnalogMode [get, set]
 
SensorPort Port [get]
 
- Properties inherited from MonoBrickFirmware.Sensors.ISensor
SensorPort Port [get]
 Sensor port More...
 

Additional Inherited Members

- Protected Member Functions inherited from MonoBrickFirmware.Sensors.AnalogSensor
void SetMode (AnalogMode mode)
 
Int16 ReadPin1AsPct ()
 
int ReadPin6AsPct ()
 
int ReadPin1As10Bit ()
 Reads the value of pin 1 converted to 10 bit More...
 
int ReadPin1 ()
 
int ReadPin5 ()
 
int ReadPin6 ()
 
byte[] ReadBytes (int offset, int length)
 
- Protected Attributes inherited from MonoBrickFirmware.Sensors.AnalogSensor
const int ADCResolution = 4095
 
const int NumberOfSensorPorts = SensorManager.NumberOfSensorPorts
 
SensorPort port
 

Detailed Description

HiTechnic gyro sensor

Constructor & Destructor Documentation

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

Initializes a new instance of the MonoBrick.NXT.HiTecGyro class without offset

MonoBrickFirmware.Sensors.HiTecGyroSensor.HiTecGyroSensor ( SensorPort  port,
int  offset 
)
inline

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

Parameters
offsetOffset

Member Function Documentation

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

Gets the name of the sensor.

Returns
The sensor name.

Implements MonoBrickFirmware.Sensors.AnalogSensor.

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

Numbers the of modes.

Returns
The number of modes

Implements MonoBrickFirmware.Sensors.AnalogSensor.

int MonoBrickFirmware.Sensors.HiTecGyroSensor.ReadAngularAcceleration ( )
inline

Read angular acceleration

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

Reads the angular acceleration as a string.

Returns
The value as a string.

Implements MonoBrickFirmware.Sensors.AnalogSensor.

override string MonoBrickFirmware.Sensors.HiTecGyroSensor.SelectedMode ( )
inlinevirtual

.m.-,

Returns
The mode.

Implements MonoBrickFirmware.Sensors.AnalogSensor.

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

Selects the next mode.

Implements MonoBrickFirmware.Sensors.AnalogSensor.

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

Selects the previous mode.

Implements MonoBrickFirmware.Sensors.AnalogSensor.

Property Documentation

int MonoBrickFirmware.Sensors.HiTecGyroSensor.Offset
getset

Gets or sets the offset.

The offset.


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