Skip to content

Commit 8323f3a

Browse files
authored
Modifies the calculate example to only include Velocity and Acceleration (#1790)
1 parent a959e5a commit 8323f3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/docs/software/advanced-controls/controllers/feedforward.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,17 +145,17 @@ To calculate the feedforward, simply call the ``calculate()`` method with the de
145145

146146
.. code-tab:: java
147147

148-
// Calculates the feedforward for a position of 10 units, velocity of 20 units/second,
148+
// Calculates the feedforward for a velocity of 20 units/second
149149
// and an acceleration of 30 units/second^2
150150
// Units are determined by the units of the gains passed in at construction.
151-
feedforward.calculate(10, 20, 30);
151+
feedforward.calculate(20, 30);
152152

153153
.. code-tab:: c++
154154

155-
// Calculates the feedforward for a position of 10 meters, velocity of 20 meters/second,
155+
// Calculates the feedforward for a velocity of 20 meters/second
156156
// and an acceleration of 30 meters/second^2
157157
// Output is in volts
158-
feedforward.Calculate(10_m, 20_mps, 30_mps_sq);
158+
feedforward.Calculate(20_mps, 30_mps_sq);
159159

160160
Using Feedforward to Control Mechanisms
161161
---------------------------------------

0 commit comments

Comments
 (0)