Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update more CTRE links #2832

Merged
merged 2 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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