Implementation for the Wiimote controller.
#include <WiimoteSensor.hpp>
|
static char * | getDevicePath (int id) |
|
|
struct xwii_iface * | iface |
|
int | calibZeroX |
|
int | calibZeroY |
|
int | calibZeroZ |
|
int | calibOneX |
|
int | calibOneY |
|
int | calibOneZ |
|
bool | yawActive |
|
WiimoteDispatcherThread | dispatcherThread |
|
◆ calibrateChannel() [1/2]
int WiimoteSensor::calibrateChannel |
( |
int |
ch | ) |
|
|
override |
Calibrates one single channel.
- Parameters
-
- Returns
- status.
◆ calibrateChannel() [2/2]
int WiimoteSensor::calibrateChannel |
( |
int |
ch, |
|
|
double |
value |
|
) |
| |
|
override |
Calibrates one single channel, using a calibration value.
- Parameters
-
ch | channel number. |
value | calibration value. |
- Returns
- status.
◆ calibrateSensor() [1/2]
int WiimoteSensor::calibrateSensor |
( |
| ) |
|
|
override |
Calibrates the whole sensor.
- Returns
- status.
◆ calibrateSensor() [2/2]
int WiimoteSensor::calibrateSensor |
( |
const yarp::sig::Vector & |
value | ) |
|
|
override |
Calibrates the whole sensor, using an vector of calibration values.
- Parameters
-
value | a vector of calibration values. |
- Returns
- status.
◆ getChannels()
int WiimoteSensor::getChannels |
( |
| ) |
|
|
override |
Get the number of channels of the sensor.
- Returns
- number of channels (0 in case of errors).
◆ getState()
int WiimoteSensor::getState |
( |
int |
ch | ) |
|
|
override |
Check the state value of a given channel.
- Parameters
-
- Returns
- status.
◆ read()
int WiimoteSensor::read |
( |
yarp::sig::Vector & |
out | ) |
|
|
override |
Read a vector from the sensor.
- Parameters
-
out | a vector containing the sensor's last readings. |
- Returns
- AS_OK or return code. AS_TIMEOUT if the sensor timed-out.
The documentation for this class was generated from the following files:
- libraries/YarpPlugins/WiimoteSensor/WiimoteSensor.hpp
- libraries/YarpPlugins/WiimoteSensor/DeviceDriverImpl.cpp
- libraries/YarpPlugins/WiimoteSensor/IAnalogSensorImpl.cpp
- libraries/YarpPlugins/WiimoteSensor/WiimoteSensor.cpp