|
anyKode Marilou
|
DeviceServoMotor * QueryDeviceServoMotor(const xkode::lib::String& Name);
|
Parameters |
Description |
|
const xkode::lib::String& Name |
[in] Nom relatif de la device moteur: Ex: hinge0/axis1/servo1 |
Pointeur sur l'instance de la device servo-moteur recherchée. La fonction retourne NULL si la device n'a pas été trouvée.
QueryDeviceServoMotor recherche une device de type servo-moteur dans la liste des devices du PHX.
//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!
|