Overview   Project   Class   Tree   Index 
NXT C++ Bluetooth Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

NXT C++ Bluetooth Library
Class Rotation

Sensor
   |
   +--Rotation

   in rotation.h

class Rotation
extends Sensor

Class for RCX rotation sensor


 
Fields inherited from class Sensor
has_init, connection, sensor_type, sensor_mode, sensor_port, raw_AD_value, normalized_AD_value, scaled_value, calibrated_value
 
Constructor Summary
Rotation( Sensor_port port, Connection* connection )
          Constructor for the rotation sensor
~Rotation()
          
 
Method Summary
 string print()
          Get the sensor reading as a string (init method will be called if the sensor has not been initialized)
 void set( unsigned int value )
          Reset the tick count
   
Methods inherited from class Sensor
init, read, read, print, set, get_port, get_mode, set_type_and_mode, get_sensor_value, read_mode, read_raw, read_normalized, get_type, reset, get_i2c_address
 

Constructor Detail

Rotation

public Rotation( Sensor_port port, Connection* connection );
Constructor for the rotation sensor
Parameters:
port - [which sensor port to use]
*connection - [attach a connection]

~Rotation

public ~Rotation();


Method Detail

print

public string print();
Get the sensor reading as a string (init method will be called if the sensor has not been initialized)
Returns:
ticks + " ticks"

set

public void set( unsigned int value );
Reset the tick count
Parameters:
value - [use RESET_TICKS to reset the tick count]

 Overview   Project   Class   Tree   Index 
NXT C++ Bluetooth Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD