-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from pacoito123/untested
2019-07-06 Merge
- Loading branch information
Showing
33 changed files
with
1,712 additions
and
718 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"java.configuration.updateBuildConfiguration": "automatic" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
* Copyright (c) 2009 FIRST | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions are met: | ||
* * Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* * Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* * Neither the name of the FIRST nor the | ||
* names of its contributors may be used to endorse or promote products | ||
* derived from this software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY FIRST AND CONTRIBUTORS``AS IS'' AND ANY | ||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
* WARRANTIES OF MERCHANTABILITY NONINFRINGEMENT AND FITNESS FOR A PARTICULAR | ||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL FIRST OR CONTRIBUTORS BE LIABLE FOR | ||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,103 @@ | ||
# lib6647 | ||
Team 6647's library to allow JSON-oriented object building and initialization. | ||
|
||
Team 6647's library for JSON-oriented object initialization, among other things. | ||
<p align="left"><a href="https://github.com/pacoito123/lib6647" target="_blank"><img src="https://i.imgur.com/F4focyC.png"></a></p> | ||
|
||
## Getting Started | ||
|
||
### Usage | ||
|
||
Team 6647 encourages the usage of this library by any team that may find it useful, period. Giving us credit is optional, but greatly appreciated. Please feel free to request anything your team might need that could be added to this library. | ||
|
||
### Compiling lib6647 to your Robot | ||
|
||
**lib6647** must be added as a dependency in your Robot's _build.gradle_ file, as well as the **json-simple** library that it requires. | ||
|
||
First, add the following url to your Maven repositories in _build.gradle_: https://jitpack.io. This is to effortlessly compile code from any github project release or commit into your code. | ||
|
||
Your _build.gradle_ file should look like this (if no other Maven repositories are present): | ||
|
||
``` | ||
repositories { | ||
mavenCentral() | ||
maven { | ||
url 'https://jitpack.io' | ||
} | ||
} | ||
``` | ||
|
||
Then, add **lib6647** and **json-simple** as a dependency in your _build.gradle_'s dependencies like so: | ||
|
||
``` | ||
// https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple | ||
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1' | ||
// lib6647 | ||
compile group: 'com.github.pacoito123', name: 'lib6647', version: '-SNAPSHOT' | ||
``` | ||
|
||
Your dependencies in should look like this (again, if none other than WPILib's dependencies are present): | ||
|
||
``` | ||
dependencies { | ||
// WPILib dependencies. | ||
compile wpi.deps.wpilib() | ||
compile wpi.deps.vendor.java() | ||
nativeZip wpi.deps.vendor.jni(wpi.platforms.roborio) | ||
nativeDesktopZip wpi.deps.vendor.jni(wpi.platforms.desktop) | ||
testCompile 'junit:junit:4.12' | ||
// https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple | ||
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1' | ||
// lib6647 | ||
compile group: 'com.github.pacoito123', name: 'lib6647', version: '-SNAPSHOT' | ||
} | ||
``` | ||
|
||
Of course, you can change the version of the library to any specific commit in any branch, just make sure that your code is compatible with it. | ||
|
||
Now you're ready to begin instantiating and initializing objects through JSON! | ||
|
||
## To do (for now) | ||
|
||
- [ ] Implement every HyperComponent Wrapper (if needed). | ||
- [ ] HyperAHRS | ||
- [ ] HyperAnalogPotentiometer | ||
- [ ] HyperCompressor | ||
- [ ] HyperDigitalInput | ||
- [ ] HyperDoubleSolenoid | ||
- [ ] HyperEncoder | ||
- [ ] HyperPDP | ||
- [x] HyperSolenoid | ||
- [x] HyperTalon | ||
- [ ] HyperUltrasonic | ||
- [x] HyperVictor | ||
- [ ] Implement SuperComponents. | ||
- [ ] SuperAHRS | ||
- [ ] SuperAnalogPotentiometer | ||
- [x] SuperCompressor | ||
- [x] SuperDigitalInput | ||
- [x] SuperDoubleSolenoid | ||
- [x] SuperEncoder | ||
- [x] SuperPDP | ||
- [x] SuperSolenoid | ||
- [x] SuperTalon | ||
- [x] SuperUltrasonic | ||
- [x] SuperVictor | ||
- [x] Improve Controller initialization. | ||
- [x] Create JController class, for initializing Buttons along with a Controller. | ||
- [x] Add Buttons for each POV and axis found for the Controller. | ||
- [ ] Add more flexibility and configuration options. | ||
- [x] Document everything properly. | ||
- [x] Do proper Exception handling. | ||
- [ ] Write proper documentation for this library. | ||
- [x] Blame mechanical. | ||
|
||
## Authors | ||
|
||
* **Francisco Rubio** - [pacoito123](https://github.com/pacoito123) | ||
|
||
## License | ||
|
||
This project is under the BSD License for WPILib code, see: [BSD_License_for_WPILib_code.txt](BSD_License_for_WPILib_code.txt). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.