Skip to content

Commit 441fe15

Browse files
committed
Fix formatting and wpilib dependency
1 parent 425a1b9 commit 441fe15

File tree

3 files changed

+32
-32
lines changed

3 files changed

+32
-32
lines changed

examples/motion_magic/robot.py

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
#!/usr/bin/env python3
22

33
"""
4-
* Example demonstrating the motion magic control mode.
5-
* Tested with Logitech F710 USB Gamepad inserted into Driver Station.
6-
*
7-
* Be sure to select the correct feedback sensor using configSelectedFeedbackSensor() below.
8-
*
9-
* After deploying/debugging this to your RIO, first use the left Y-stick
10-
* to throttle the Talon manually. This will confirm your hardware setup/sensors
11-
* and will allow you to take initial measurements.
12-
*
13-
* Be sure to confirm that when the Talon is driving forward (green) the
14-
* position sensor is moving in a positive direction. If this is not the
15-
* cause, flip the boolean input to the setSensorPhase() call below.
16-
*
17-
* Once you've ensured your feedback device is in-phase with the motor,
18-
* and followed the walk-through in the Talon SRX Software Reference Manual,
19-
* use button1 to motion-magic servo to target position specified by the gamepad stick.
4+
* Example demonstrating the motion magic control mode.
5+
* Tested with Logitech F710 USB Gamepad inserted into Driver Station.
6+
*
7+
* Be sure to select the correct feedback sensor using configSelectedFeedbackSensor() below.
8+
*
9+
* After deploying/debugging this to your RIO, first use the left Y-stick
10+
* to throttle the Talon manually. This will confirm your hardware setup/sensors
11+
* and will allow you to take initial measurements.
12+
*
13+
* Be sure to confirm that when the Talon is driving forward (green) the
14+
* position sensor is moving in a positive direction. If this is not the
15+
* cause, flip the boolean input to the setSensorPhase() call below.
16+
*
17+
* Once you've ensured your feedback device is in-phase with the motor,
18+
* and followed the walk-through in the Talon SRX Software Reference Manual,
19+
* use button1 to motion-magic servo to target position specified by the gamepad stick.
2020
"""
2121

2222
from phoenix5 import WPI_TalonSRX

examples/position_closed_loop/robot.py

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
#!/usr/bin/env python3
22

33
"""
4-
* Example demonstrating the Position closed-loop servo.
5-
* Tested with Logitech F350 USB Gamepad inserted into Driver Station]
6-
*
7-
* Be sure to select the correct feedback sensor using configSelectedFeedbackSensor() below.
8-
*
9-
* After deploying/debugging this to your RIO, first use the left Y-stick
10-
* to throttle the Talon manually. This will confirm your hardware setup.
11-
* Be sure to confirm that when the Talon is driving forward (green) the
12-
* position sensor is moving in a positive direction. If this is not the cause
13-
* flip the boolean input to the setSensorPhase() call below.
14-
*
15-
* Once you've ensured your feedback device is in-phase with the motor,
16-
* use the button shortcuts to servo to target position.
17-
*
18-
* Tweak the PID gains accordingly.
4+
* Example demonstrating the Position closed-loop servo.
5+
* Tested with Logitech F350 USB Gamepad inserted into Driver Station]
6+
*
7+
* Be sure to select the correct feedback sensor using configSelectedFeedbackSensor() below.
8+
*
9+
* After deploying/debugging this to your RIO, first use the left Y-stick
10+
* to throttle the Talon manually. This will confirm your hardware setup.
11+
* Be sure to confirm that when the Talon is driving forward (green) the
12+
* position sensor is moving in a positive direction. If this is not the cause
13+
* flip the boolean input to the setSensorPhase() call below.
14+
*
15+
* Once you've ensured your feedback device is in-phase with the motor,
16+
* use the button shortcuts to servo to target position.
17+
*
18+
* Tweak the PID gains accordingly.
1919
"""
2020

2121
import phoenix5

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author_email = "[email protected]"
66
url = "https://github.com/robotpy/robotpy-ctre"
77
license = "MIT"
88
install_requires = [
9-
"wpilib>2025.3.2",
9+
"wpilib>=2025.3.2",
1010
"phoenix6~=25.3.1",
1111
]
1212

0 commit comments

Comments
 (0)