StopLogicEngine.Decelerate


class StopLogicEngine.Decelerate : StopEngine


Summary

Public constructors

Public functions

Unit
config(currentPos: Float, destination: Float, currentVelocity: Float)

Configure simple deceleration controller

String!
debug(desc: String!, time: Float)
Float
Float
Float
Boolean

Public constructors

Decelerate

Added in 1.1.0
Decelerate()

Public functions

config

Added in 1.1.0
fun config(currentPos: Float, destination: Float, currentVelocity: Float): Unit

Configure simple deceleration controller

Parameters
currentPos: Float

the current position

destination: Float

the destination position

currentVelocity: Float

the currentVelocity change in pos / second

debug

Added in 1.1.0
fun debug(desc: String!, time: Float): String!

getInterpolation

Added in 1.1.0
fun getInterpolation(time: Float): Float

getVelocity

Added in 1.1.0
fun getVelocity(): Float

getVelocity

Added in 1.1.0
fun getVelocity(time: Float): Float

isStopped

Added in 1.1.0
fun isStopped(): Boolean