From 972d76a4e912e1838e54e19e788236a2719ab90e Mon Sep 17 00:00:00 2001 From: Jestin VanScoyoc <31118852+JediScoy@users.noreply.github.com> Date: Sat, 16 Dec 2023 09:57:15 -0500 Subject: [PATCH] notes --- docs/source/controls/ctre.rst | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/docs/source/controls/ctre.rst b/docs/source/controls/ctre.rst index 1ef14bf..c41e609 100644 --- a/docs/source/controls/ctre.rst +++ b/docs/source/controls/ctre.rst @@ -26,37 +26,6 @@ Randomness - `Package com.ctre.phoenix6.configs `_. - `API Migration `_. "Cheat Sheet" -/* - - `Control Requests `_. Brief examples below - - `Closed-Loop Control including Motion Magic `_. -*/ - --------------------------- -Control Requests Examples --------------------------- - -v5 - -.. code-block:: java - - // 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); - - -v6 - -.. code-block:: java - - // 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 Request Changes :widths: 50 50 @@ -75,5 +44,6 @@ v6 * - - {ClosedLoop}TorqueCurrentFOC (requires Pro) +*See API Migration `_ for more* ~ This is the way. \ No newline at end of file