anyKode Marilou
ContentsIndexHome
PreviousUpNext
DeviceMotor::SetMaxAccelerationDEG

Ask the motor to change the maximum acceleration.

C++
bool SetMaxAccelerationDEG(float DeltaVelocityDegsPerSec, M32 * pDeviceResponse = NULL, void * pReserved = NULL);
Parameters 
Description 
float DeltaVelocityDegsPerSec 
[in] Max accélération 
M32 * pDeviceResponse = NULL 
(see Message
void * pReserved = NULL 
(see Message

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

DeltaVelocityDegsPerSec is the new motor acceleration. It's the maximum delta speed (degree/s) for 1 second. 

If DeltaVelocityDegsPerSec is 0, the maximum acceleration is applied according to the motor settings. Otherwise the applied acceleration is the minimum between the motor settings and DeltaVelocityDegsPerSec.

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