java.lang.Object
org.firstinspires.ftc.teamcode.subsystems.robotMethods.RobotMethods

public class RobotMethods extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static double
     
    (package private) static double
     
    (package private) static int
     
    (package private) static float
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    driveTo(Hardware robot, Context context, double targetX, double targetY, double motorRunPower, double tolerance, org.firstinspires.ftc.robotcore.external.Telemetry telemetry)
     
    static void
    goToPosition(Hardware robot, Context context, double targetX, double targetY, double motorRunPower, double tolerance, org.firstinspires.ftc.robotcore.external.Telemetry telemetry)
     
    static void
    turnTo(Hardware robot, Context context, double directionTo, double motorRunPower, double tolerance, org.firstinspires.ftc.robotcore.external.Telemetry telemetry)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • wheelEncoderPPR

      static float wheelEncoderPPR
    • wheelDiameter

      static int wheelDiameter
    • mmPerEncoderTick

      static double mmPerEncoderTick
    • distanceBetweenWheels

      static double distanceBetweenWheels
  • Constructor Details

    • RobotMethods

      public RobotMethods()
  • Method Details

    • driveTo

      public static void driveTo(Hardware robot, Context context, double targetX, double targetY, double motorRunPower, double tolerance, org.firstinspires.ftc.robotcore.external.Telemetry telemetry)
    • goToPosition

      public static void goToPosition(Hardware robot, Context context, double targetX, double targetY, double motorRunPower, double tolerance, org.firstinspires.ftc.robotcore.external.Telemetry telemetry)
    • turnTo

      public static void turnTo(Hardware robot, Context context, double directionTo, double motorRunPower, double tolerance, org.firstinspires.ftc.robotcore.external.Telemetry telemetry)