From a798c7b578227d77292692b3772a53957b9aa61c Mon Sep 17 00:00:00 2001 From: Jestin VanScoyoc <31118852+JediScoy@users.noreply.github.com> Date: Sat, 16 Dec 2023 09:44:46 -0500 Subject: [PATCH] notes --- docs/source/controls/ctre.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/source/controls/ctre.rst b/docs/source/controls/ctre.rst index 5e66afc..83cdc22 100644 --- a/docs/source/controls/ctre.rst +++ b/docs/source/controls/ctre.rst @@ -33,7 +33,8 @@ Randomness Control Requests ----------------- v5 - +.. code-block:: Java + :linenos: // robot init, set voltage compensation to 12 V m_motor.configVoltageComSaturation(12); m_motor.enableVoltageCompensation(true); @@ -41,6 +42,8 @@ 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); @@ -48,6 +51,7 @@ 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