Skip to content

Commit

Permalink
notes
Browse files Browse the repository at this point in the history
  • Loading branch information
JediScoy committed Dec 16, 2023
1 parent a798c7b commit 4098745
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/source/controls/ctre.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,21 @@ Randomness
-----------------
Control Requests
-----------------

v5

.. code-block:: Java
:linenos:
// robot init, set voltage compensation to 12 V
m_motor.configVoltageComSaturation(12);
m_motor.enableVoltageCompensation(true);

// main robot code, command 12 V output
m_motor.set(ControlMode.PercentOutput, 1.0);

.. code-block:: Java
:linenos:

v6

.. code-block:: Java
// class member variable
final VoltageOut m_request = new VoltageOut(0);

Expand Down

0 comments on commit 4098745

Please sign in to comment.