anyKode Marilou
ContentsIndexHome
PreviousUpNext
DeviceMotor::SetVelocityRPS

Changing motor's rotational speed.

C++
bool SetVelocityRPS(float RdPerSec, M32 * pDeviceResponse = NULL, void * pReserved = NULL);
Parameters 
Description 
float RdPerSec 
[in] New rotational speed rad/s. 
M32 * pDeviceResponse = NULL 
(see Message
void * pReserved = NULL 
(see Message

true if the motor received the new command, false if otherwise.

SetVelocityRPS activates the rotational speed regulation (if not yet active) and sets the new motor's rotational speed (after gearbox). The torque used in order to regulate the rotational speed around the specified RdPerSec value is est min( GetMaxTorque, GetEffectiveMaxTorque).

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