Tuning your Elevator ==================== In the third step of the elevator wizard, the user is guided through **creating setpoints** and **calculating closed-loop** gains. .. tip:: Check out :doc:`/docs/api-reference/device-specific/talonfx/basic-pid-control` for information on how to tune a closed-loop position system. .. image:: images/elevator-tuning-overview.png :alt: Picture showing the Tuning tab in Elevator Generator :width: 600 Elevator Setpoints ------------------ Setpoints are configured in the :guilabel:`Setpoints` tab in the second column. .. image:: images/introducing-elevator-setpoints.png :alt: Picture showing 1 on the add button, 2 on the edit name button, 3 on the play button, and 4 on the trash button for setpoints :width: 600 1. Add a new setpoint 2. Rename a setpoint - Ensure setpoint names are unique, or there will be compile errors when you generate your Elevator. 3. Run setpoint - The robot must be **ENABLED**, or nothing will happen. 4. Delete setpoint Closed-loop Gains ----------------- Gains can be configured in the first column. While default gains have been calculated, it is **highly recommended** to just use this as a starting point. The elevator should be tuned in it's final configuration, with any load that it may need to bear (holding a game piece). .. image:: images/elevator-gains.png :alt: Picture with a bounding box around the gains section in Tuning :width: 600 The control request used to command the elevator is ``MotionMagicVoltage`` (`Java `__, `C++ `__, `Python `__), which allows the user to directly control velocity and acceleration for smooth travel.