Skip to content

Commit

Permalink
Update more CTRE links (#2832)
Browse files Browse the repository at this point in the history
* Update more CTRE links

Update Pigeon code examples for Phoenix 6

* Pigeon 2

Co-authored-by: Jason Daming <[email protected]>

---------

Co-authored-by: Jason Daming <[email protected]>
  • Loading branch information
sciencewhiz and jasondaming authored Nov 8, 2024
1 parent a6578ee commit 66e7fa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
14 changes: 4 additions & 10 deletions source/docs/software/hardware-apis/sensors/gyros-software.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,24 +125,18 @@ The navX uses the :code:`AHRS` class. See the [navX documentation](https://pdoc
self.gyro = navx.AHRS(SPI.Port.kMXP)
```

## Pigeon
## Pigeon 2

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.
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.

.. tab-set-code::

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

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

```python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ For more information, check out the following links:

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

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

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

Expand Down

0 comments on commit 66e7fa2

Please sign in to comment.