Skip to content

Commit 132fd2f

Browse files
added proper imports to code examples
1 parent f8eb0b6 commit 132fd2f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/section-7/feedforward-control.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ new SysIdRoutine.Mechanism(this::driveMotor, this::logMotor, this)
113113

114114
Here are the two functions that drive and log the motor voltage:
115115
```java
116+
import static edu.wpi.first.units.MutableMeasure.mutable;
117+
import static edu.wpi.first.units.Units.Volts;
118+
116119
// Mutable holder for unit-safe voltage values, persisted to avoid reallocation.
117120
private final MutableMeasure<Voltage> voltage = mutable(Volts.of(0));
118121

0 commit comments

Comments
 (0)