toggle menu
BunyipsLib
v8.1.0-master-d40a7c907
BunyipsLib
switch theme
search in API
BunyipsLib
/
au.edu.sa.mbhs.studentrobotics.bunyipslib.hardware
/
Motor
/
GainScheduling
Gain
Scheduling
open
inner
class
GainScheduling
Gain scheduler builder which will interpolate on build and populate gains. Not to be used as-is.
See also
schedule
Run
To
Position
Gains()
schedule
Run
Using
Encoder
Gains()
Members
Functions
at
State
Link copied to clipboard
@
NonNull
open
fun
atState
(
encoderState
:
Double
,
@
NonNull
coeffs
:
Array
<
Double
>
)
:
Motor.GainScheduling
Specify a position or velocity in encoder ticks that you want the gains of your system controller to be during this state.
build
Link copied to clipboard
open
fun
build
(
)
Create the interpolated lookup tables for use in gains scheduling.