Skip to content

Commit

Permalink
use same variable name between the two code blocks (#2533)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Anhysteretic committed Jan 17, 2024
1 parent c461cc9 commit 75dd8e6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ To be able to run the tests, SysIdRoutine exposes test "factories", or functions
.. code-block:: java
public Command sysIdQuasistatic(SysIdRoutine.Direction direction) {
return m_sysIdRoutine.quasistatic(direction);
return routine.quasistatic(direction);
}
public Command sysIdDynamic(SysIdRoutine.Direction direction) {
return m_sysIdRoutine.dynamic(direction);
return routine.dynamic(direction);
}
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.
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 comments on commit 75dd8e6

Please sign in to comment.