Skip to content

Commit d70b427

Browse files
fix: correct typo on RunToState page
Changes `RunToPosition` to `RunToVelocity` in the `RunToVelocity` section. PR: #11
1 parent 69b491e commit d70b427

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/nextftc/hardware/motor-and-servo-commands/runtostate.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,17 @@ POSITIVE_INFINITY`. The velocity tolerance defaults to 5.
137137
== Kotlin
138138

139139
```kotlin
140-
RunToPosition(controlSystem, velTarget)
141-
RunToPosition(controlSystem, velTarget, velTolerance)
142-
RunToPosition(controlSystem, velTarget, fullTolerance)
140+
RunToVelocity(controlSystem, velTarget)
141+
RunToVelocity(controlSystem, velTarget, velTolerance)
142+
RunToVelocity(controlSystem, velTarget, fullTolerance)
143143
```
144144

145145
== Java
146146

147147
```java
148-
new RunToPosition(controlSystem, velTarget)
149-
new RunToPosition(controlSystem, velTarget, velTolerance)
150-
new RunToPosition(controlSystem, veltarget, fullTolerance)
148+
new RunToVelocity(controlSystem, velTarget)
149+
new RunToVelocity(controlSystem, velTarget, velTolerance)
150+
new RunToVelocity(controlSystem, veltarget, fullTolerance)
151151
```
152152

153-
:::
153+
:::

0 commit comments

Comments
 (0)