Represents a Gyroscope.
More...
#include <Gyroscope.h>
float rec::robotino::api2::Gyroscope::angle |
( |
| ) |
const |
Returns the current angle.
- Returns
- The angle in radians.
- Exceptions
-
- See also
- ComObject::setComId
virtual void rec::robotino::api2::Gyroscope::gyroscopeEvent |
( |
float |
angle, |
|
|
float |
rate |
|
) |
| |
|
virtual |
void rec::robotino::api2::Gyroscope::processEvents |
( |
| ) |
|
Call this function from your main thread to get the virtual Gyroscope functions called. The virtual functions are called directly by a call of this function
- Exceptions
-
- See also
- Com::processEvents
float rec::robotino::api2::Gyroscope::rate |
( |
| ) |
const |
Returns the current rate.
- Returns
- The rotation rate in radians/second.
- Exceptions
-
- See also
- ComObject::setComId
void rec::robotino::api2::Gyroscope::setComId |
( |
const ComId & |
id | ) |
|
Sets the associated communication object.
- Parameters
-
id | The id of the associated communication object. |
- Exceptions
-
The documentation for this class was generated from the following file:
- C:/srcs/git/openrobotino/api2/lib/rec/robotino/api2/Gyroscope.h