EasyStack Docs

Tuning

Esta página ainda não foi traduzida. Mostrando a versão em inglês.

The Tuning tab lets you change gains and values while the robot runs, without rebuilding the app. Use it to find the right numbers quickly, then copy them into your code.

#Motor Gains

Every EasyMotor appears in the Tuning tab. Choose a motor and edit its gains with a field or a slider:

  • Velocity (PIDF): kP, kI, kD and kF.
  • Position (PID): kP, kI and kD.
  • Feedforward: kS, kV and kA.

Only the sets that the motor really uses are shown. A motor that uses its own custom controller does not show gains.

  • Apply to robot: sends the changed gains to the motor.
  • Apply while dragging: sends each change at once.
  • Copy as code: copies setVelocityPIDF, setPositionPID or setVelocityFF calls with your final values.

Gains changed in the dashboard last until the app restarts, so copy them into your project when you are happy with the result.

#Step Response

When you change the target of a motor in velocity or position mode, the dashboard measures how it reacts and shows:

  • Rise time: how long it takes to go from 10% to 90% of the step.
  • Overshoot: how far it goes past the target.
  • Settling time: when it stays inside 5% of the step.
  • Steady error: the average error at the end.

Each new step is compared with the previous one, so you see whether a change made things better or worse.

#Tunable Values

Mark static fields with @Tunable and register the class:

Java
public class Constants {
    @Tunable public static double INTAKE_POWER = 0.8;
    @Tunable public static int SHOOTER_RPM = 3000;
    @Tunable public static boolean FIELD_CENTRIC = true;
}

EasyDash.tunables(Constants.class);
  • Fields must be static and not final, and of type double, float, int, long or boolean.
  • If no field has the annotation, all public fields that fit are used.
  • A number is edited with a field and a boolean with a checkbox.
  • Copy as code in the Tunables panel copies the final values.

Read the fields in your loop, so your code uses the value that you just changed.

Última atualização 2026-11-16

EasyStack - FTC Java library

This site records page views of visitors to understand how the documentation is used. Nothing is sold or shared with third parties.