anyKode Marilou
|
QueryDeviceServoMotor searches and return a motor device from the list of the PHX's devices.
DeviceServoMotor * QueryDeviceServoMotor(const xkode::lib::String& Name);
Parameters |
Description |
const 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 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
|
What do you think about this topic? Send feedback!
|