Skip to content

Commit

Permalink
added support for new and old buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Belliveau committed Jan 16, 2020
1 parent 09106fc commit 8c754ef
Show file tree
Hide file tree
Showing 40 changed files with 1,642 additions and 496 deletions.
97 changes: 56 additions & 41 deletions docs/allclasses-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
catch(err) {
}
//-->
var data = {"i0":2,"i1":8,"i2":2,"i3":2,"i4":2,"i5":2,"i6":2,"i7":4,"i8":2,"i9":2,"i10":2,"i11":2,"i12":1,"i13":2,"i14":1,"i15":2,"i16":1,"i17":1,"i18":2,"i19":2,"i20":1,"i21":2,"i22":4,"i23":4,"i24":4,"i25":4,"i26":2,"i27":2,"i28":2,"i29":2,"i30":2,"i31":2,"i32":2,"i33":2,"i34":2,"i35":2,"i36":2,"i37":2,"i38":2,"i39":2,"i40":1,"i41":2,"i42":2,"i43":2,"i44":2,"i45":2};
var data = {"i0":1,"i1":2,"i2":2,"i3":8,"i4":2,"i5":2,"i6":2,"i7":2,"i8":2,"i9":4,"i10":2,"i11":2,"i12":2,"i13":2,"i14":1,"i15":2,"i16":1,"i17":2,"i18":1,"i19":1,"i20":2,"i21":2,"i22":4,"i23":4,"i24":4,"i25":4,"i26":2,"i27":2,"i28":2,"i29":2,"i30":2,"i31":2,"i32":2,"i33":2,"i34":2,"i35":2,"i36":2,"i37":2,"i38":2,"i39":2,"i40":2,"i41":2,"i42":1,"i43":2,"i44":2,"i45":2,"i46":2,"i47":2};
var tabs = {65535:["t0","All Classes"],1:["t1","Interface Summary"],2:["t2","Class Summary"],4:["t3","Enum Summary"],8:["t4","Exception Summary"]};
var altColor = "altColor";
var rowColor = "rowColor";
Expand Down Expand Up @@ -111,6 +111,12 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/input/buttons/BooleanProvider.html" title="interface in com.stuypulse.stuylib.input.buttons">BooleanProvider</a></td>
<th class="colLast" scope="row">
<div class="block">Interface that provides boolean for button classes</div>
</th>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/BufferedIStream.html" title="class in com.stuypulse.stuylib.streams">BufferedIStream</a></td>
<th class="colLast" scope="row">
<div class="block">This class allows you to use an input stream while recording the last N
Expand All @@ -119,20 +125,27 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
It extends from IStream, so it also workes with the existing IStream classes</div>
</th>
</tr>
<tr id="i1" class="rowColor">
<tr id="i2" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/input/buttons/ButtonWrapper.html" title="class in com.stuypulse.stuylib.input.buttons">ButtonWrapper</a></td>
<th class="colLast" scope="row">
<div class="block">This class helps us bridge the gap between new and old code
by allowing one button class to provide a new and old button.</div>
</th>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/exception/ConstructionError.html" title="class in com.stuypulse.stuylib.exception">ConstructionError</a></td>
<th class="colLast" scope="row">
<div class="block">Exception to be thrown when a parameter in construction is given an invalid
value</div>
</th>
</tr>
<tr id="i2" class="altColor">
<tr id="i4" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/file/csv/CSVElement.html" title="class in com.stuypulse.stuylib.file.csv">CSVElement</a></td>
<th class="colLast" scope="row">
<div class="block">Stores the data for each element in a custom class.</div>
</th>
</tr>
<tr id="i3" class="rowColor">
<tr id="i5" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/CSVIStream.html" title="class in com.stuypulse.stuylib.streams">CSVIStream</a></td>
<th class="colLast" scope="row">
<div class="block">Class Writer allows you to read input from an IStream into a CSV file Class
Expand All @@ -141,113 +154,101 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
They extend from IStream, so they also work with the existing IStream classes</div>
</th>
</tr>
<tr id="i4" class="altColor">
<tr id="i6" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/CSVIStream.Reader.html" title="class in com.stuypulse.stuylib.streams">CSVIStream.Reader</a></td>
<th class="colLast" scope="row">
<div class="block">This CSVIStream Reader lets you replay a CSV file as if it was anyother
IStream</div>
</th>
</tr>
<tr id="i5" class="rowColor">
<tr id="i7" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/CSVIStream.Writer.html" title="class in com.stuypulse.stuylib.streams">CSVIStream.Writer</a></td>
<th class="colLast" scope="row">
<div class="block">This CSVIStream writer let an IStream pass through while recording the values
of the IStream into a CSV file.</div>
</th>
</tr>
<tr id="i6" class="altColor">
<tr id="i8" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/file/csv/CSVReader.html" title="class in com.stuypulse.stuylib.file.csv">CSVReader</a></td>
<th class="colLast" scope="row">
<div class="block">Read CSV Files with a bunch of epic features.</div>
</th>
</tr>
<tr id="i7" class="rowColor">
<tr id="i9" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/file/csv/CSVType.html" title="enum in com.stuypulse.stuylib.file.csv">CSVType</a></td>
<th class="colLast" scope="row">
<div class="block">Contains all the information needed for each of the csv files to work.</div>
</th>
</tr>
<tr id="i8" class="altColor">
<tr id="i10" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/file/csv/CSVWriter.html" title="class in com.stuypulse.stuylib.file.csv">CSVWriter</a></td>
<th class="colLast" scope="row">
<div class="block">CSVWriter class that allows you to write to a file in the format of a CSV.</div>
</th>
</tr>
<tr id="i9" class="rowColor">
<tr id="i11" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/filters/DerivativeFilter.html" title="class in com.stuypulse.stuylib.streams.filters">DerivativeFilter</a></td>
<th class="colLast" scope="row">
<div class="block">This class lets you rate limit a stream of inputs</div>
</th>
</tr>
<tr id="i10" class="altColor">
<tr id="i12" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/FilteredIStream.html" title="class in com.stuypulse.stuylib.streams">FilteredIStream</a></td>
<th class="colLast" scope="row">
<div class="block">Takes a Stream and a StreamFilter and makes a FilteredStream

This could be used to automatically filter controller inputs</div>
</th>
</tr>
<tr id="i11" class="rowColor">
<tr id="i13" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/file/FRCLogger.html" title="class in com.stuypulse.stuylib.file">FRCLogger</a></td>
<th class="colLast" scope="row">
<div class="block">A class that will let you log any class that implements loggable.</div>
</th>
</tr>
<tr id="i12" class="altColor">
<tr id="i14" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/file/FRCLogger.Loggable.html" title="interface in com.stuypulse.stuylib.file">FRCLogger.Loggable</a></td>
<th class="colLast" scope="row">
<div class="block">Implementable interface with getLog() function.</div>
</th>
</tr>
<tr id="i13" class="rowColor">
<tr id="i15" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/input/Gamepad.html" title="class in com.stuypulse.stuylib.input">Gamepad</a></td>
<th class="colLast" scope="row">
<div class="block">An class for using gamepads with different interfaces.</div>
</th>
</tr>
<tr id="i14" class="altColor">
<tr id="i16" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/info/Information.html" title="interface in com.stuypulse.stuylib.info">Information</a></td>
<th class="colLast" scope="row">
<div class="block">Holds information about stuylib</div>
</th>
</tr>
<tr id="i15" class="rowColor">
<tr id="i17" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/filters/IntegralFilter.html" title="class in com.stuypulse.stuylib.streams.filters">IntegralFilter</a></td>
<th class="colLast" scope="row">
<div class="block">This class lets you take the integral of an IStream using a filter</div>
</th>
</tr>
<tr id="i16" class="altColor">
<tr id="i18" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/IStream.html" title="interface in com.stuypulse.stuylib.streams">IStream</a></td>
<th class="colLast" scope="row">
<div class="block">A stream of doubles that is accessed with the .get() function</div>
</th>
</tr>
<tr id="i17" class="rowColor">
<tr id="i19" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/filters/IStreamFilter.html" title="interface in com.stuypulse.stuylib.streams.filters">IStreamFilter</a></td>
<th class="colLast" scope="row">
<div class="block">This lets us make sub-classes that change can modify values in this way</div>
</th>
</tr>
<tr id="i18" class="altColor">
<tr id="i20" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/filters/IStreamFilterGroup.html" title="class in com.stuypulse.stuylib.streams.filters">IStreamFilterGroup</a></td>
<th class="colLast" scope="row">
<div class="block">A simple class that lets you combine multiple stream filters into one stream
filter</div>
</th>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/input/LambdaButton.html" title="class in com.stuypulse.stuylib.input">LambdaButton</a></td>
<th class="colLast" scope="row">
<div class="block">This class lets you make a wpi button with any function.</div>
</th>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/input/LambdaButton.ButtonCheck.html" title="interface in com.stuypulse.stuylib.input">LambdaButton.ButtonCheck</a></td>
<th class="colLast" scope="row">
<div class="block">Lets us recieve a function to use as a button</div>
</th>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/network/limelight/Limelight.html" title="class in com.stuypulse.stuylib.network.limelight">Limelight</a></td>
<th class="colLast" scope="row">
Expand Down Expand Up @@ -339,6 +340,20 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
</th>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/input/buttons/NewButton.html" title="class in com.stuypulse.stuylib.input.buttons">NewButton</a></td>
<th class="colLast" scope="row">
<div class="block">This class will let us use the new button by
providing a lambda for it to use</div>
</th>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/input/buttons/OldButton.html" title="class in com.stuypulse.stuylib.input.buttons">OldButton</a></td>
<th class="colLast" scope="row">
<div class="block">This class will let us use the old button by
providing a lambda for it to use</div>
</th>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/PollingIStream.html" title="class in com.stuypulse.stuylib.streams">PollingIStream</a></td>
<th class="colLast" scope="row">
<div class="block">Takes an IStream and an IStreamFilter and makes a PollingIStream
Expand All @@ -347,64 +362,64 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
calls get</div>
</th>
</tr>
<tr id="i36" class="altColor">
<tr id="i38" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/input/gamepads/PS4.html" title="class in com.stuypulse.stuylib.input.gamepads">PS4</a></td>
<th class="colLast" scope="row">
<div class="block">Implementation of the PS4 for the Gamepad Class</div>
</th>
</tr>
<tr id="i37" class="rowColor">
<tr id="i39" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/filters/RateLimit.html" title="class in com.stuypulse.stuylib.streams.filters">RateLimit</a></td>
<th class="colLast" scope="row">
<div class="block">This class lets you rate limit a stream of inputs</div>
</th>
</tr>
<tr id="i38" class="altColor">
<tr id="i40" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/filters/RollingAverage.html" title="class in com.stuypulse.stuylib.streams.filters">RollingAverage</a></td>
<th class="colLast" scope="row">
<div class="block">Simple implementation of an Exponential Moving Average</div>
</th>
</tr>
<tr id="i39" class="rowColor">
<tr id="i41" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/math/SLMath.html" title="class in com.stuypulse.stuylib.math">SLMath</a></td>
<th class="colLast" scope="row">
<div class="block">SLMath (StuyLib Math) is a class containing many algorithms that are useful
for developing robot code.</div>
</th>
</tr>
<tr id="i40" class="altColor">
<tr id="i42" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/filters/SLMathFilter.html" title="interface in com.stuypulse.stuylib.streams.filters">SLMathFilter</a></td>
<th class="colLast" scope="row">
<div class="block">A set of filters that uses algorithms from InputScaler that can be used as a
StreamFilter.</div>
</th>
</tr>
<tr id="i41" class="rowColor">
<tr id="i43" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/network/limelight/Solve3DResult.html" title="class in com.stuypulse.stuylib.network.limelight">Solve3DResult</a></td>
<th class="colLast" scope="row">
<div class="block">Class that is used to return solve 3D results from the limelight</div>
</th>
</tr>
<tr id="i42" class="altColor">
<tr id="i44" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/filters/TimedRateLimit.html" title="class in com.stuypulse.stuylib.streams.filters">TimedRateLimit</a></td>
<th class="colLast" scope="row">
<div class="block">This class lets you rate limit a stream of inputs where the values are
limited based on time passed</div>
</th>
</tr>
<tr id="i43" class="rowColor">
<tr id="i45" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/math/Vector2D.html" title="class in com.stuypulse.stuylib.math">Vector2D</a></td>
<th class="colLast" scope="row">
<div class="block">Simple coordinate class that defines many helpful functions like</div>
</th>
</tr>
<tr id="i44" class="altColor">
<tr id="i46" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/info/Version.html" title="class in com.stuypulse.stuylib.info">Version</a></td>
<th class="colLast" scope="row">
<div class="block">This class holds version information that can be printed and comparted</div>
</th>
</tr>
<tr id="i45" class="rowColor">
<tr id="i47" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/input/WPIGamepad.html" title="class in com.stuypulse.stuylib.input">WPIGamepad</a></td>
<th class="colLast" scope="row">
<div class="block">WPI Gamepad extends Gamepad and adds functions that makes interacting with
Expand Down
6 changes: 4 additions & 2 deletions docs/allclasses.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
<h1 class="bar">All&nbsp;Classes</h1>
<main role="main" class="indexContainer">
<ul>
<li><a href="com/stuypulse/stuylib/input/buttons/BooleanProvider.html" title="interface in com.stuypulse.stuylib.input.buttons"><span class="interfaceName">BooleanProvider</span></a></li>
<li><a href="com/stuypulse/stuylib/streams/BufferedIStream.html" title="class in com.stuypulse.stuylib.streams">BufferedIStream</a></li>
<li><a href="com/stuypulse/stuylib/input/buttons/ButtonWrapper.html" title="class in com.stuypulse.stuylib.input.buttons">ButtonWrapper</a></li>
<li><a href="com/stuypulse/stuylib/exception/ConstructionError.html" title="class in com.stuypulse.stuylib.exception">ConstructionError</a></li>
<li><a href="com/stuypulse/stuylib/file/csv/CSVElement.html" title="class in com.stuypulse.stuylib.file.csv">CSVElement</a></li>
<li><a href="com/stuypulse/stuylib/streams/CSVIStream.html" title="class in com.stuypulse.stuylib.streams">CSVIStream</a></li>
Expand All @@ -40,8 +42,6 @@ <h1 class="bar">All&nbsp;Classes</h1>
<li><a href="com/stuypulse/stuylib/streams/IStream.html" title="interface in com.stuypulse.stuylib.streams"><span class="interfaceName">IStream</span></a></li>
<li><a href="com/stuypulse/stuylib/streams/filters/IStreamFilter.html" title="interface in com.stuypulse.stuylib.streams.filters"><span class="interfaceName">IStreamFilter</span></a></li>
<li><a href="com/stuypulse/stuylib/streams/filters/IStreamFilterGroup.html" title="class in com.stuypulse.stuylib.streams.filters">IStreamFilterGroup</a></li>
<li><a href="com/stuypulse/stuylib/input/LambdaButton.html" title="class in com.stuypulse.stuylib.input">LambdaButton</a></li>
<li><a href="com/stuypulse/stuylib/input/LambdaButton.ButtonCheck.html" title="interface in com.stuypulse.stuylib.input"><span class="interfaceName">LambdaButton.ButtonCheck</span></a></li>
<li><a href="com/stuypulse/stuylib/network/limelight/Limelight.html" title="class in com.stuypulse.stuylib.network.limelight">Limelight</a></li>
<li><a href="com/stuypulse/stuylib/network/limelight/Limelight.CameraStream.html" title="enum in com.stuypulse.stuylib.network.limelight">Limelight.CameraStream</a></li>
<li><a href="com/stuypulse/stuylib/network/limelight/Limelight.CamMode.html" title="enum in com.stuypulse.stuylib.network.limelight">Limelight.CamMode</a></li>
Expand All @@ -56,6 +56,8 @@ <h1 class="bar">All&nbsp;Classes</h1>
<li><a href="com/stuypulse/stuylib/input/keyboard/computer/NetKeyListener.html" title="class in com.stuypulse.stuylib.input.keyboard.computer">NetKeyListener</a></li>
<li><a href="com/stuypulse/stuylib/input/keyboard/computer/NetKeyWindow.html" title="class in com.stuypulse.stuylib.input.keyboard.computer">NetKeyWindow</a></li>
<li><a href="com/stuypulse/stuylib/network/NetworkTableWrapper.html" title="class in com.stuypulse.stuylib.network">NetworkTableWrapper</a></li>
<li><a href="com/stuypulse/stuylib/input/buttons/NewButton.html" title="class in com.stuypulse.stuylib.input.buttons">NewButton</a></li>
<li><a href="com/stuypulse/stuylib/input/buttons/OldButton.html" title="class in com.stuypulse.stuylib.input.buttons">OldButton</a></li>
<li><a href="com/stuypulse/stuylib/streams/PollingIStream.html" title="class in com.stuypulse.stuylib.streams">PollingIStream</a></li>
<li><a href="com/stuypulse/stuylib/input/gamepads/PS4.html" title="class in com.stuypulse.stuylib.input.gamepads">PS4</a></li>
<li><a href="com/stuypulse/stuylib/streams/filters/RateLimit.html" title="class in com.stuypulse.stuylib.streams.filters">RateLimit</a></li>
Expand Down
Loading

0 comments on commit 8c754ef

Please sign in to comment.