Package com.reduxrobotics.canand
Class Repeater
java.lang.Object
com.reduxrobotics.canand.Repeater
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 Summary
Constructors -
Method Summary
-
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 tomessageId- the message ID to send todata- the data as a 64-bit longlength- the length codeperiodMs- the period to send in millisecondstimes- the number of times to repeat the message
-
disarm
public void disarm()Permanently disarms theRepeater.
-