WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

getY

Returns the Y axis rotational velocity in degrees per second at the time of the last read().
Syntax
Gyro. getY()
Where Gyro is the name you have given to the device in Project Designer.
Parameters
None
Returns
GYRO_TYPE
Example
Assuming you have called the sensor 'myGyro' in Project Designer you can dump the value to the standard output device as follows:
myGyro.read();
GYRO_TYPE x = myGyro.getX();
GYRO_TYPE y = myGyro.getY();
GYRO_TYPE z = myGyro.getZ();
cout << "X=" << x << " Y=" << y << " Z=" << z;
See Also
read

 

 

Valid XHTML 1.0 Transitional