Skip to content

Commit

Permalink
cleanup whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ruleant committed Feb 15, 2014
1 parent 027ca48 commit 2a7051c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/com/github/ruleant/getback_gps/lib/Orientation.java
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ private long getMax(final long value1, final long value2) {
* @param newValue new sensor value
* @return filtered value
*/
public static float lowPassFilter (
public static float lowPassFilter(
final float previousValue, final float newValue) {
return previousValue + LOW_PASS_ALPHA * (newValue - previousValue);
}
Expand All @@ -338,7 +338,7 @@ public static float lowPassFilter (
* @param newArray array of current values
* @return array with filtered values.
*/
public static float[] lowPassFilterArray (
public static float[] lowPassFilterArray(
final float[] previousArray, final float[] newArray) {
// newArray should not be empty
if (newArray == null || newArray.length == 0) {
Expand All @@ -351,7 +351,7 @@ public static float[] lowPassFilterArray (
if (previousArray == null) {
return newArray;
}

// previousArray should have the same size as newArray
if (newArray.length != previousArray.length) {
throw new IllegalArgumentException(
Expand Down

0 comments on commit 2a7051c

Please sign in to comment.