Skip to content

Commit 66e7fa2

Browse files
Update more CTRE links (#2832)
* Update more CTRE links Update Pigeon code examples for Phoenix 6 * Pigeon 2 Co-authored-by: Jason Daming <jason.daming@intralox.com> --------- Co-authored-by: Jason Daming <jason.daming@intralox.com>
1 parent a6578ee commit 66e7fa2

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

source/docs/software/hardware-apis/sensors/gyros-software.rst

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,24 +125,18 @@ The navX uses the :code:`AHRS` class. See the [navX documentation](https://pdoc
125125
self.gyro = navx.AHRS(SPI.Port.kMXP)
126126
```
127127

128-
## Pigeon
128+
## Pigeon 2
129129

130-
The Pigeon should use the :code:`WPI_PigeonIMU` class. The Pigeon can either be connected with CAN or by data cable to a TalonSRX. The [Pigeon IMU User's Guide](https://store.ctr-electronics.com/content/user-manual/Pigeon%20IMU%20User's%20Guide.pdf) contains full details on using the Pigeon.
130+
The Pigeon should use the :code:`Pigeon2` class. The Pigeon can either be connected with CAN or by data cable to a TalonSRX. The [Pigeon IMU User's Guide](https://ctre.download/files/user-manual/Pigeon2%20User's%20Guide.pdf) contains full details on using the Pigeon.
131131

132132
.. tab-set-code::
133133

134134
```java
135-
WPI_PigeonIMU gyro = new WPI_PigeonIMU(0); // Pigeon is on CAN Bus with device ID 0
136-
// OR (choose one or the other based on your connection)
137-
TalonSRX talon = new TalonSRX(0); // TalonSRX is on CAN Bus with device ID 0
138-
WPI_PigeonIMU gyro = new WPI_PigeonIMU(talon); // Pigeon uses the talon created above
135+
private final Pigeon2 pidgey = new Pigeon2(1, "rio"); // Pigeon is on roboRIO CAN Bus with device ID 1
139136
```
140137

141138
```c++
142-
WPI_PigeonIMU gyro{0}; // Pigeon is on CAN Bus with device ID 0
143-
// OR (choose one or the other based on your connection)
144-
TalonSRX talon{0}; // TalonSRX is on CAN Bus with device ID 0
145-
WPI_PigeonIMU gyro{talon}; // Pigeon uses the talon created above
139+
ctre::phoenix6::hardware::Pigeon2 pidgey{1, "rio"}; // Pigeon is on roboRIO CAN Bus with device ID 1
146140
```
147141

148142
```python

source/docs/software/labview/resources/using-the-compressor-in-labview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ For more information, check out the following links:
66

77
:download:`FRC Pneumatics Manual <files/2015-frc-pneumatics-manual.pdf>`
88

9-
[PCM User's Guide](https://store.ctr-electronics.com/content/user-manual/PCM%20User%27s%20Guide.pdf)
9+
[PCM User's Guide](https://ctre.download/files/user-manual/PCM%20User's%20Guide.pdf)
1010

1111
[Pneumatics Step by Step for the roboRIO](http://team358.org/files/pneumatic/Pneumatics-StepByStep-roboRIO.pdf)
1212

0 commit comments

Comments
 (0)