https://github.com/repcomm/powerplay-controller
https://github.com/repcomm/powerplay-controller
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/repcomm/powerplay-controller
- Owner: RepComm
- License: bsd-3-clause-clear
- Created: 2022-09-30T02:57:39.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-04T16:19:46.000Z (over 3 years ago)
- Last Synced: 2025-01-28T08:51:12.690Z (12 months ago)
- Language: Java
- Size: 24.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# powerplay-controller
Source code for a REV-31-1152 controller
Base project copied from [FTC SDK](https://github.com/FIRST-Tech-Challenge/FtcRobotController)
The [TeamCode](./TeamCode/src/main/java/org/firstinspires/ftc/teamcode) directory contains the custom source code for this repo
### User Documentation and Tutorials
- [FtcRobotController Online Documentation](https://github.com/FIRST-Tech-Challenge/FtcRobotController/wiki)
- [FTC Javadoc Documentation](https://javadoc.io/doc/org.firstinspires.ftc)
- [FTC Technology Forum](https://ftcforum.firstinspires.org/forum/ftc-technology)
### Implemented
- [Omnidrive](./TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Omnidrive.java) - math to calculate driving in a direction given arbitrary wheel count and angles
- [Debounce](./TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Debounce.java) - think windows 'sticky keys' feature
- [Vec2](./TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Vec2.java) - 2d vector math library (ported from npm @repcomm/vec2 typescript module)
- [Main](./TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Main.java) - Main OpMode
- [MathEx](./TeamCode/src/main/java/org/firstinspires/ftc/teamcode/MathEx.java) - Extra math functions
### Controls
- `A` : toggle align mode vs raw turn mode
- `Right/Left bumper` : turn 90 degrees (only in align mode)
- `Left stick` : drive direction / magnitude
- `Right stick X` : turn / align turn