Class CANrange
Class for CANrange, a CAN based Time of Flight (ToF) sensor that measures the distance to the front of the device.
public class CANrange : CoreCANrange, CommonDevice
- Inheritance
-
CANrange
- Implements
- Inherited Members
Constructors
CANrange(int)
Constructs a new CANrange object.
Constructs the device using the default CAN bus for the system (see CANBus(string)).public CANrange(int deviceId)
Parameters
deviceIdintID of the device, as configured in Phoenix Tuner
CANrange(int, CANBus)
Constructs a new CANrange object.
public CANrange(int deviceId, CANBus canbus)
Parameters
deviceIdintID of the device, as configured in Phoenix Tuner
canbusCANBusThe CAN bus this device is on
CANrange(int, string)
Constructs a new CANrange object.
[Obsolete("Constructing devices with a CAN bus string is deprecated for removal in the 2027 season. Construct devices using a CANBus instance instead.")]
public CANrange(int deviceId, string canbus)
Parameters
deviceIdintID of the device, as configured in Phoenix Tuner
canbusstringName of the CAN bus. Possible CAN bus strings are:
- CANivore name or serial number
- SocketCAN interface (non-FRC Linux only)
- "" for any CANivore seen by the program
- empty string (default) to select the default for the system:
- "can0" on Linux
- "" on Windows