mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[sim] Clarify Sim CAN Device Documentation (#6679)
This commit is contained in:
@@ -39,6 +39,9 @@ public class SimDevice implements AutoCloseable {
|
||||
* instances of the same device are desired, recommend appending the instance/unique identifier in
|
||||
* brackets to the base name, e.g. "device[1]".
|
||||
*
|
||||
* <p>Using a device name of the form "Type:Name" will create a WebSockets node with a type value
|
||||
* of "Type" and a device value of "Name"
|
||||
*
|
||||
* <p>null is returned if not in simulation.
|
||||
*
|
||||
* @param name device name
|
||||
@@ -59,6 +62,9 @@ public class SimDevice implements AutoCloseable {
|
||||
* convenience method that appends index in brackets to the device name, e.g. passing index=1
|
||||
* results in "device[1]" for the device name.
|
||||
*
|
||||
* <p>Using a device name of the form "Type:Name" will create a WebSockets node with a type value
|
||||
* of "Type" and a device value of "Name"
|
||||
*
|
||||
* <p>null is returned if not in simulation.
|
||||
*
|
||||
* @param name device name
|
||||
@@ -76,6 +82,9 @@ public class SimDevice implements AutoCloseable {
|
||||
* convenience method that appends index and channel in brackets to the device name, e.g. passing
|
||||
* index=1 and channel=2 results in "device[1,2]" for the device name.
|
||||
*
|
||||
* <p>Using a device name of the form "Type:Name" will create a WebSockets node with a type value
|
||||
* of "Type" and a device value of "Name"
|
||||
*
|
||||
* <p>null is returned if not in simulation.
|
||||
*
|
||||
* @param name device name
|
||||
|
||||
@@ -16,6 +16,9 @@ public class SimDeviceJNI extends JNIWrapper {
|
||||
* instances of the same device are desired, recommend appending the instance/unique identifier in
|
||||
* brackets to the base name, e.g. "device[1]".
|
||||
*
|
||||
* <p>Using a device name of the form "Type:Name" will create a WebSockets node with a type value
|
||||
* of "Type" and a device value of "Name"
|
||||
*
|
||||
* <p>0 is returned if not in simulation.
|
||||
*
|
||||
* @param name device name
|
||||
|
||||
Reference in New Issue
Block a user