Table of Contents

Class Pigeon2

Namespace
CTRE.Phoenix6.Hardware
Assembly
Phoenix6.Hardware.dll

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

deviceId int

ID of the device, as configured in Phoenix Tuner

Pigeon2(int, CANBus)

Constructs a new Pigeon2 object.

public Pigeon2(int deviceId, CANBus canbus)

Parameters

deviceId int

ID of the device, as configured in Phoenix Tuner

canbus CANBus

The 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

deviceId int

ID of the device, as configured in Phoenix Tuner

canbus string

Name 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