TeamCode / org.firstinspires.ftc.teamcode.movement / LinearMotion / canMove

canMove

fun canMove(power: Double? = null, at: Int? = null): Boolean

Checks whether the linear motion system is allowed to move at a given power.

Parameters

power - the power at which to check whether the linear motion system should move; null to simply check whether the system is in a valid position

at - the position at which to check whether the linear motion system should move; null to use the system's current position

Return
whether it is safe for the linear motion system to move