Skip to content

Commit

Permalink
fixed TankDriveEncoder and added TimedRateLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Belliveau committed Feb 20, 2020
1 parent a871605 commit 7692ee3
Show file tree
Hide file tree
Showing 63 changed files with 788 additions and 377 deletions.
67 changes: 37 additions & 30 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":1,"i1":2,"i2":2,"i3":8,"i4":2,"i5":2,"i6":2,"i7":2,"i8":2,"i9":2,"i10":4,"i11":2,"i12":2,"i13":2,"i14":1,"i15":2,"i16":2,"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":2,"i43":2,"i44":2,"i45":2,"i46":2,"i47":2,"i48":2,"i49":2,"i50":2,"i51":2,"i52":2,"i53":2,"i54":2,"i55":2,"i56":2};
var data = {"i0":1,"i1":2,"i2":2,"i3":8,"i4":2,"i5":2,"i6":2,"i7":2,"i8":2,"i9":2,"i10":4,"i11":2,"i12":2,"i13":2,"i14":1,"i15":2,"i16":2,"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":2,"i43":2,"i44":2,"i45":2,"i46":2,"i47":2,"i48":2,"i49":2,"i50":2,"i51":2,"i52":2,"i53":2,"i54":2,"i55":2,"i56":2,"i57":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 @@ -128,8 +128,8 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
<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>
<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">
Expand Down Expand Up @@ -157,7 +157,7 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
<th class="colLast" scope="row">
<div class="block">Class Writer allows you to read input from an IStream into a CSV file Class
Reader is an IStream that reads from CSV file

They extend from IStream, so they also work with the existing IStream classes</div>
</th>
</tr>
Expand All @@ -171,8 +171,8 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
<tr id="i8" class="altColor">
<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>
<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="i9" class="rowColor">
Expand All @@ -197,7 +197,7 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
<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>
Expand All @@ -210,9 +210,9 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
<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">The Loggable interface should be implemented by a class that can
return a useful piece of data that can be called on demand to be written
into the log.</div>
<div class="block">The Loggable interface should be implemented by a class that can return a
useful piece of data that can be called on demand to be written into the
log.</div>
</th>
</tr>
<tr id="i15" class="rowColor">
Expand Down Expand Up @@ -283,15 +283,15 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
<tr id="i27" class="rowColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/input/gamepads/Logitech.DMode.html" title="class in com.stuypulse.stuylib.input.gamepads">Logitech.DMode</a></td>
<th class="colLast" scope="row">
<div class="block">There is a switch on the back of the controller this is for when the switch
is in the D position</div>
<div class="block">There is a switch on the back of the controller this is for when the
switch is in the D position</div>
</th>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/input/gamepads/Logitech.XMode.html" title="class in com.stuypulse.stuylib.input.gamepads">Logitech.XMode</a></td>
<th class="colLast" scope="row">
<div class="block">There is a switch on the back of the controller this is for when the switch
is in the X position</div>
<div class="block">There is a switch on the back of the controller this is for when the
switch is in the X position</div>
</th>
</tr>
<tr id="i29" class="rowColor">
Expand All @@ -302,7 +302,7 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/filters/MovingAverage.html" title="class in com.stuypulse.stuylib.streams.filters">MovingAverage</a></td>
<th class="colLast" scope="row">
<div class="block">Simple implementation of an Simple Moving Average

This is not time dependant, so the values will change if you change the rate
that you call this filter, the filter will not adapt for that.</div>
</th>
Expand All @@ -311,7 +311,7 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
<td class="colFirst"><a href="com/stuypulse/stuylib/input/keyboard/NetKeyboard.html" title="class in com.stuypulse.stuylib.input.keyboard">NetKeyboard</a></td>
<th class="colLast" scope="row">
<div class="block">This class lets you send and receive keyboard information over network tables

Every other class will interact with the network keyboards through this class</div>
</th>
</tr>
Expand All @@ -326,9 +326,9 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
<th class="colLast" scope="row">
<div class="block">A KeyListener that uploads all of the key strokes to a network table where
they can then be received and put into the robot

This would not be used on the robot, but should be used on the users computer

Make an AWT window to use this listener</div>
</th>
</tr>
Expand All @@ -342,15 +342,13 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
<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>
<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>
<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">
Expand All @@ -364,7 +362,7 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/filters/OrderedLowPassFilter.html" title="class in com.stuypulse.stuylib.streams.filters">OrderedLowPassFilter</a></td>
<th class="colLast" scope="row">
<div class="block">Simple implementation of an Exponential Moving Average

This is not time dependant, so the values will change if you change the rate
that you call this filter, the filter will not adapt for that.</div>
</th>
Expand All @@ -373,7 +371,7 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/filters/OrderedRollingAverage.html" title="class in com.stuypulse.stuylib.streams.filters">OrderedRollingAverage</a></td>
<th class="colLast" scope="row">
<div class="block">Simple implementation of an Exponential Moving Average

This is not time dependant, so the values will change if you change the rate
that you call this filter, the filter will not adapt for that.</div>
</th>
Expand All @@ -395,7 +393,7 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
<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

A PollingIStream calls .get() every x milliseconds instead of when the user
calls get</div>
</th>
Expand All @@ -410,10 +408,10 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
<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

That means that the value can not change more than a specified amount in one
update

This is not time dependant, so the values will change if you change the rate
that you call this filter, the filter will not adapt for that.</div>
</th>
Expand All @@ -422,7 +420,7 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
<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

This is not time dependant, so the values will change if you change the rate
that you call this filter, the filter will not adapt for that.</div>
</th>
Expand Down Expand Up @@ -479,18 +477,27 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
</th>
</tr>
<tr id="i54" 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

Instead of being based on the rate that update is called, the value you give
it is based on how much it should be able to change in one second.</div>
</th>
</tr>
<tr id="i55" 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="i55" class="rowColor">
<tr id="i56" class="altColor">
<td class="colFirst"><a href="com/stuypulse/stuylib/streams/filters/WeightedMovingAverage.html" title="class in com.stuypulse.stuylib.streams.filters">WeightedMovingAverage</a></td>
<th class="colLast" scope="row">
<div class="block">Implementation of Weighted Moving Average.</div>
</th>
</tr>
<tr id="i56" class="altColor">
<tr id="i57" 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
1 change: 1 addition & 0 deletions docs/allclasses.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ <h1 class="bar">All&nbsp;Classes</h1>
<li><a href="com/stuypulse/stuylib/network/limelight/Solve3DResult.html" title="class in com.stuypulse.stuylib.network.limelight">Solve3DResult</a></li>
<li><a href="com/stuypulse/stuylib/util/StopWatch.html" title="class in com.stuypulse.stuylib.util">StopWatch</a></li>
<li><a href="com/stuypulse/stuylib/util/TankDriveEncoder.html" title="class in com.stuypulse.stuylib.util">TankDriveEncoder</a></li>
<li><a href="com/stuypulse/stuylib/streams/filters/TimedRateLimit.html" title="class in com.stuypulse.stuylib.streams.filters">TimedRateLimit</a></li>
<li><a href="com/stuypulse/stuylib/math/Vector2D.html" title="class in com.stuypulse.stuylib.math">Vector2D</a></li>
<li><a href="com/stuypulse/stuylib/streams/filters/WeightedMovingAverage.html" title="class in com.stuypulse.stuylib.streams.filters">WeightedMovingAverage</a></li>
<li><a href="com/stuypulse/stuylib/input/WPIGamepad.html" title="class in com.stuypulse.stuylib.input">WPIGamepad</a></li>
Expand Down
Loading

0 comments on commit 7692ee3

Please sign in to comment.