https://github.com/gongoliers/gongoliers-talonsrx
A simple Talon SRX wrapper for FRC.
https://github.com/gongoliers/gongoliers-talonsrx
ctre frc motor robot speed-controller talon talon-srx
Last synced: 3 months ago
JSON representation
A simple Talon SRX wrapper for FRC.
- Host: GitHub
- URL: https://github.com/gongoliers/gongoliers-talonsrx
- Owner: Gongoliers
- License: mit
- Created: 2019-02-02T15:14:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-09T10:54:42.000Z (about 6 years ago)
- Last Synced: 2024-12-29T23:25:20.240Z (5 months ago)
- Topics: ctre, frc, motor, robot, speed-controller, talon, talon-srx
- Language: Java
- Size: 102 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gongoliers TalonSRX
A library to simplify the use of a TalonSRX in FRC.
View the [JavaDocs](https://gongoliers.github.io/Gongoliers-TalonSRX).
### Features
- Simple configuration of Talon SRX
- Run Talon SRX in several modes (percent output, position, velocity, current)## Installation
To use Gongoliers TalonSRX with Gradle projects, you can use [JitPack](https://jitpack.io/) by adding the following lines to your `build.gradle` file:```Gradle
repositories {
...
maven { url 'https://jitpack.io' }
}dependencies {
...
compile 'com.github.Gongoliers:Gongoliers-TalonSRX:v1.2.1'
}
```## Usage
```Java
// Create a talon
GTalonSRX talon = new GTalonSRX(0);talon.set(0.5); // percent output
talon.setCurrent(20); // ampstalon.setPID(0.2, 0, 0, 1); // Set the PID
talon.setSensor(FeedbackDevice.CTRE_MagEncoder_Relative);
talon.setPosition(12); // position
talon.setVelocity(1); // velocity```
## Contributing
Please fork this repo and submit a pull request to contribute. We will review all changes and respond if they are accepted or rejected (as well as reasons, so it will be accepted).## License
This project is published under the [MIT license](LICENSE).