Package com.reduxrobotics.canand
Class DigitalStateSender
java.lang.Object
com.reduxrobotics.canand.DigitalStateSender
- All Implemented Interfaces:
AutoCloseable
This class can be instantiated to transmit digital state over CAN.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DigitalStateSender
Constructor- Parameters:
bus- busperiodMs- period to send at
-
-
Method Details
-
setState
public void setState(int index, boolean value) Set state at index- Parameters:
index- indexvalue- value
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-