anyKode Marilou
ContentsIndexHome
PreviousUpNext
DeviceMotor::SetEffectiveMaxTorque

Changing the motor's torque.

C++
bool SetEffectiveMaxTorque(float Torque, M32 * pDeviceResponse = NULL, void * pReserved = NULL);
Parameters 
Description 
float Torque 
[in] New torque value to use in the range [0, GetMaxTorque
M32 * pDeviceResponse = NULL 
(see Message
void * pReserved = NULL 
(see Message

true if the motor (or servo) received the new value, false otherwise.

SetEffectiveMaxTorque changes the torque that the motor (or servo) can use for maintaining its rotational speed or its position. If the new value is 0, the EffectiveMaxTorque = MaxTorque, otherwise, the value is automatically ranged in ] 0.0 , GetMaxTorque() ]

Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!