Interface DriveModule

    • Method Detail

      • run

        DriveSpeed run​(DriveSpeed currentSpeed,
                       DriveSpeed desiredSpeed,
                       double deltaTime)
        Run the drive module
        Parameters:
        currentSpeed - the current speed of the drivetrain
        desiredSpeed - the desired speed of the drivetrain
        deltaTime - the delta time since the last call in seconds
        Returns:
        the speed the drivetrain should set
      • overridesUser

        default boolean overridesUser()
        Determines if the module should override the user's input
        Returns:
        true if it overrides the user's input