toggle menu
BunyipsLib
v6.0.0-master-33a554fa
BunyipsLib
switch theme
search in API
BunyipsLib
/
au.edu.sa.mbhs.studentrobotics.bunyipslib.roadrunner.constraints
/
Turn
Turn
class
Turn
Utility constructor for creating RoadRunner turn constraints.
Author
Lucas Bubner, 2024
Since
6.0.0
Members
Properties
max
Ang
Accel
Rads
Per
Sec
Squared
Link copied to clipboard
@
Nullable
open
var
maxAngAccelRadsPerSecSquared
:
Double
Specified maximum angular acceleration in radians per second squared.
max
Ang
Vel
Rads
Per
Sec
Link copied to clipboard
@
Nullable
open
var
maxAngVelRadsPerSec
:
Double
Specified maximum angular velocity in radians per second.
min
Ang
Accel
Rads
Per
Sec
Squared
Link copied to clipboard
@
Nullable
open
var
minAngAccelRadsPerSecSquared
:
Double
Specified minimum angular acceleration in radians per second squared.
Functions
and
Max
Accel
Link copied to clipboard
@
NonNull
open
fun
andMaxAccel
(
maxAngAccel
:
Double
,
@
NonNull
unit
:
Velocity
<
Velocity
<
Angle
>
>
)
:
Turn
Compose this Turn object with a maximum angular acceleration constraint.
and
Max
Vel
Link copied to clipboard
@
NonNull
open
fun
andMaxVel
(
maxAngVel
:
Double
,
@
NonNull
unit
:
Velocity
<
Angle
>
)
:
Turn
Compose this Turn object with a maximum angular velocity constraint.
and
Min
Accel
Link copied to clipboard
@
NonNull
open
fun
andMinAccel
(
minAngAccel
:
Double
,
@
NonNull
unit
:
Velocity
<
Velocity
<
Angle
>
>
)
:
Turn
Compose this Turn object with a minimum angular acceleration constraint.
get
Or
Default
Link copied to clipboard
@
NonNull
open
fun
getOrDefault
(
@
NonNull
defaultConstraints
:
TurnConstraints
)
:
TurnConstraints
Get a built TurnConstraints object with the specified constraints.
of
Max
Accel
Link copied to clipboard
@
NonNull
open
fun
ofMaxAccel
(
maxAngAccel
:
Double
,
@
NonNull
unit
:
Velocity
<
Velocity
<
Angle
>
>
)
:
Turn
Create a new Turn object with the specified maximum angular acceleration.
of
Max
Vel
Link copied to clipboard
@
NonNull
open
fun
ofMaxVel
(
maxAngVel
:
Double
,
@
NonNull
unit
:
Velocity
<
Angle
>
)
:
Turn
Create a new Turn object with the specified maximum angular velocity.
of
Min
Accel
Link copied to clipboard
@
NonNull
open
fun
ofMinAccel
(
minAngAccel
:
Double
,
@
NonNull
unit
:
Velocity
<
Velocity
<
Angle
>
>
)
:
Turn
Create a new Turn object with the specified minimum angular acceleration.