|
NXT C++ Bluetooth Library | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sensor | +--Gyroin gyro.h
Class for HiTechnic Gyro sensor
Fields inherited from class Sensor |
|
Constructor Summary | |
Gyro( Sensor_port port, Connection* connection, int offset = 0 )
Constructor for the Gyro sensor (default offset is set to zero) |
|
~Gyro()
|
Method Summary | |
Sensor_type |
get_type()
Get the sensor type |
string |
print()
Get the sensor reading as a string (init method will be called if the sensor has not been initialized) |
int |
read()
Read the sensor value () (init method will be called if the sensor has not been initialized) |
Methods inherited from class Sensor |
init, read, read, print, set, get_port, get_mode, |
Constructor Detail |
public Gyro( Sensor_port port, Connection* connection, int offset = 0 );
port
- [which sensor port to use]
*connection
- [attach a connection]
offset
- [set the offset]public ~Gyro();
Method Detail |
public Sensor_type get_type();
public string print();
public int read();
|
NXT C++ Bluetooth Library | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |