Skip to content

Commit

Permalink
Fix URCL/AdvantageKit docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Nov 11, 2024
1 parent 51deacf commit 1659609
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docsSite/docs/more-features/urcl.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,16 @@ sysIdRoutine.dynamic(SysIdRoutine.Direction.kReverse);

```java
// Create the SysId routine
var sysIdRoutine = new SysIdRoutine.Config(
null, null, null,
(state) -> Logger.recordOutput("SysIdTestState", state.toString())
var sysIdRoutine = new SysIdRoutine(
new SysIdRoutine.Config(
null, null, null,
(state) -> Logger.recordOutput("SysIdTestState", state.toString())
),
new SysIdRoutine.Mechanism(
(voltage) -> subsystem.runVolts(voltage.in(Volts)),
null, // No log consumer, since data is recorded by URCL
subsystem
)
);

// The methods below return Command objects
Expand Down

0 comments on commit 1659609

Please sign in to comment.