Skip to content

Commit 8daef7c

Browse files
authored
Fix docs on slew rate limiting doubles in C++ (#1806)
1 parent a04ac30 commit 8daef7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/docs/software/advanced-controls/filters/slew-rate-limiter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Once your filter has been created, using it is easy - simply call the ``calculat
5050
Using a SlewRateLimiter with DifferentialDrive
5151
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5252

53-
.. note:: In the C++ example below, the filter is templated on ``double``, rather than on a unit type, since joystick values are typically dimensionless.
53+
.. note:: The C++ example below templates the filter on ``units::scalar`` for use with doubles, since joystick values are typically dimensionless.
5454

5555
A typical use of a SlewRateLimiter is to limit the acceleration of a robot's drive. This can be especially handy for robots that are very top-heavy, or that have very powerful drives. To do this, apply a SlewRateLimiter to a value passed into your robot drive function:
5656

0 commit comments

Comments
 (0)