Class Pigeon2
Class description for the Pigeon 2 IMU sensor that measures orientation.
public class Pigeon2 : CorePigeon2, CommonDevice
- Inheritance
-
Pigeon2
- Implements
- Inherited Members
Constructors
Pigeon2(int)
Constructs a new Pigeon2 object.
Constructs the device using the default CAN bus for the system (see CANBus(string)).public Pigeon2(int deviceId)
Parameters
deviceIdintID of the device, as configured in Phoenix Tuner
Pigeon2(int, CANBus)
Constructs a new Pigeon2 object.
public Pigeon2(int deviceId, CANBus canbus)
Parameters
deviceIdintID of the device, as configured in Phoenix Tuner
canbusCANBusThe CAN bus this device is on
Pigeon2(int, string)
Constructs a new Pigeon2 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 Pigeon2(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