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 d7e5ce5 commit a798c7b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/source/controls/ctre.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,25 @@ 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
// class member variable
final VoltageOut m_request = new VoltageOut(0);

// main robot code, command 12 V output
m_motor.setControl(m_request.withOutput(12.0));


.. list-table:: Control Requests
:widths: 50 50
:header-rows: 1
Expand Down

0 comments on commit a798c7b

Please sign in to comment.