Class IRLink

    • Field Detail

      • RCX_REMOTE_BEEP

        public static int RCX_REMOTE_BEEP
      • RCX_REMOTE_STOP

        public static int RCX_REMOTE_STOP
      • RCX_REMOTE_P5

        public static int RCX_REMOTE_P5
      • RCX_REMOTE_P4

        public static int RCX_REMOTE_P4
      • RCX_REMOTE_P3

        public static int RCX_REMOTE_P3
      • RCX_REMOTE_P2

        public static int RCX_REMOTE_P2
      • RCX_REMOTE_P1

        public static int RCX_REMOTE_P1
      • RCX_REMOTE_C_BWD

        public static int RCX_REMOTE_C_BWD
      • RCX_REMOTE_B_BWD

        public static int RCX_REMOTE_B_BWD
      • RCX_REMOTE_A_BWD

        public static int RCX_REMOTE_A_BWD
      • RCX_REMOTE_C_FWD

        public static int RCX_REMOTE_C_FWD
      • RCX_REMOTE_B_FWD

        public static int RCX_REMOTE_B_FWD
      • RCX_REMOTE_A_FWD

        public static int RCX_REMOTE_A_FWD
      • RCX_REMOTE_MSG3

        public static int RCX_REMOTE_MSG3
      • RCX_REMOTE_MSG2

        public static int RCX_REMOTE_MSG2
      • RCX_REMOTE_MSG1

        public static int RCX_REMOTE_MSG1
    • Constructor Detail

      • IRLink

        public IRLink​(I2CPort port)
      • IRLink

        public IRLink​(Port port)
    • Method Detail

      • sendPFComboDirect

        public void sendPFComboDirect​(int channel,
                                      int opA,
                                      int opB)
        Send commands to both motors. Uses PF Combo direct mode.
        Parameters:
        channel - the channel number (0-3)
        opA - Motor A operation
        opB - Motor B operation
      • sendBytes

        public void sendBytes​(byte[] data,
                              int len)
        Description copied from interface: IRTransmitter
        Send raw bytes to the RCX
        Specified by:
        sendBytes in interface IRTransmitter
        Parameters:
        data - the raw data
        len - the number of bytes
      • sendPacket

        public void sendPacket​(byte[] data)
        Description copied from interface: IRTransmitter
        Send a packet of data to the RCX
        Specified by:
        sendPacket in interface IRTransmitter
      • sendRemoteCommand

        public void sendRemoteCommand​(int msg)
        Description copied from interface: IRTransmitter
        Send a remote control command to the RCX
        Specified by:
        sendRemoteCommand in interface IRTransmitter
        Parameters:
        msg - the code for the remote command