Class Repeater

java.lang.Object
com.reduxrobotics.canand.Repeater

public class Repeater extends Object
A class representing a message repeater. Message repeaters live in the Redux driver and repeat messages for some fixed period for some fixed number of repetitions until their configuration gets updated.
  • Constructor Details

    • Repeater

      public Repeater()
      Allocates a new message repeater.
  • Method Details

    • update

      public void update(int busId, int messageId, long data, int length, int periodMs, int times)
      Updates the message repeater. This will also immediately send out the updated message.
      Parameters:
      busId - the bus ID to send to
      messageId - the message ID to send to
      data - the data as a 64-bit long
      length - the length code
      periodMs - the period to send in milliseconds
      times - the number of times to repeat the message
    • disarm

      public void disarm()
      Permanently disarms the Repeater.