KMPServo

class KMPServo @JvmOverloads constructor(    name: String,     constraints: MotionConstraints,     epsilon: Double = 0.01) : KDevice<Servo> , Periodic

Motion profiled servo. Follows a position curve generated by MotionProfile.generateTrapezoidal

Parameters

name

hardware configuration name

constraints

motion constraints that generate the profile

epsilon

allowed error when the servo will stop moving

Constructors

Link copied to clipboard
fun KMPServo(    name: String,     constraints: MotionConstraints,     epsilon: Double = 0.01)

Properties

Link copied to clipboard
val isAtTarget: Boolean
Link copied to clipboard
val reverse: KMPServo
Link copied to clipboard
val setpoint: Double

Inherited properties

Link copied to clipboard
val deviceName: String

Functions

Link copied to clipboard
open override fun periodic()
Link copied to clipboard
fun setTarget(x: Double)
Link copied to clipboard
fun startAt(startPos: Double): KMPServo

Inherited functions

Link copied to clipboard
open override fun toString(): String