Skip to content

Commit 75dd8e6

Browse files
authored
use same variable name between the two code blocks (#2533)
The two code blocks use two different variable names for the SysIdRoutine, adjust the naming to be the same variable to reduce confusion for readers.
1 parent c461cc9 commit 75dd8e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/docs/software/advanced-controls/system-identification/creating-routine.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ To be able to run the tests, SysIdRoutine exposes test "factories", or functions
6565
.. code-block:: java
6666
6767
public Command sysIdQuasistatic(SysIdRoutine.Direction direction) {
68-
return m_sysIdRoutine.quasistatic(direction);
68+
return routine.quasistatic(direction);
6969
}
7070
7171
public Command sysIdDynamic(SysIdRoutine.Direction direction) {
72-
return m_sysIdRoutine.dynamic(direction);
72+
return routine.dynamic(direction);
7373
}
7474
75-
Either bind the factory methods to either controller buttons or an create an autonomous routine with them. It is recommended to bind them to buttons that the user must hold down for the duration of the test so that the user can stop the routine quickly if it exceeds safe limits.
75+
Either bind the factory methods to either controller buttons or create an autonomous routine with them. It is recommended to bind them to buttons that the user must hold down for the duration of the test so that the user can stop the routine quickly if it exceeds safe limits.

0 commit comments

Comments
 (0)