anyKode Marilou
ContentsIndexHome
PreviousUpNext
RobotPHX::QueryDeviceServoMotor

QueryDeviceServoMotor searches and return a motor device from the list of the PHX's devices.

C++
DeviceServoMotor * QueryDeviceServoMotor(xkode::lib::String Name);
Parameters 
Description 
xkode::lib::String Name 
[in] Relative name of the device engine:
Ex: hinge0/axis1/servo1 

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

//Visual .net 2005 Managed C++ syntax

//...
Moda::DeviceServoMotor ^pServo1=robot->QueryDeviceServoMotor("hinge0/axis0/s");
if(pServo1)
    {
    pServo1->GoPositionDeg(45.0);
    }
//...
Documentation v4.7 (17/05/2011), Copyright (c) 2011 anyKode. All rights reserved.
What do you think about this topic? Send feedback!