|
1 | 1 | #!/usr/bin/env python3
|
2 | 2 |
|
3 | 3 | """
|
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. |
20 | 20 | """
|
21 | 21 |
|
22 | 22 | from phoenix5 import WPI_TalonSRX
|
|
0 commit comments