Class API


  • public class API
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      API​(com.qualcomm.robotcore.eventloop.opmode.OpMode mode)  
      API​(com.qualcomm.robotcore.eventloop.opmode.OpMode mode, boolean useLogFile)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Clears the telemetry
      void pause​(double seconds)
      Pauses for a given amount of seconds, with sub-millisecond accuracy
      void print​(java.lang.String s)
      Prints a line to telemetry
      void print​(java.lang.String caption, java.lang.String value)
      Prints a value to telemetry, formatted as "caption: value"
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • useLogFile

        public final boolean useLogFile
      • logFile

        public java.io.File logFile
    • Constructor Detail

      • API

        public API​(com.qualcomm.robotcore.eventloop.opmode.OpMode mode,
                   boolean useLogFile)
        Parameters:
        mode - the opmode to initialize with
        useLogFile - whether or not to log to a log file
      • API

        public API​(com.qualcomm.robotcore.eventloop.opmode.OpMode mode)
        Parameters:
        mode - the opmode to initialize with
    • Method Detail

      • pause

        public void pause​(double seconds)
        Pauses for a given amount of seconds, with sub-millisecond accuracy
        Parameters:
        seconds - the amount of seconds to pause for
      • print

        public void print​(java.lang.String s)
        Prints a line to telemetry
        Parameters:
        s - the text to print
        See Also:
        print(String, String)
      • print

        public void print​(java.lang.String caption,
                          java.lang.String value)
        Prints a value to telemetry, formatted as "caption: value"
        Parameters:
        caption - the caption to print
        value - the value to print
        See Also:
        print(String)
      • clear

        public void clear()
        Clears the telemetry