anyKode Marilou
ContentsIndexHome
PreviousUpNext
RobotPHX::QueryDeviceAbsolutCompass

QueryDeviceAbsolutCompass searches and return an Absolute Compass device from the list of the PHX's devices.

C++
DeviceAbsolutCompass * QueryDeviceAbsolutCompass(xkode::lib::String Name);
Parameters 
Description 
xkode::lib::String Name 
[in] Relative name of the device:
Ex: box0/mydevice 

Pointer to the instance of the required device. The function returns NULL if the device were not found.

//MODA C++ native sample code

//...
ModaCPP::DeviceAbsolutCompass *pDevice=pPHX->QueryAbsolutCompass("box0/mydevice");
if(pDevice) ...
Documentation v4.7 (17/05/2011), Copyright (c) 2011 anyKode. All rights reserved.
What do you think about this topic? Send feedback!