Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
maxspier committed Oct 17, 2024
1 parent 4cb9d6c commit 6a5164e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/com/team766/orin/GetOrinRawValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class GetOrinRawValue {
private static DoubleArrayEntry poseValues = pose.getEntry(arr);

private static IntegerArrayTopic tagId = table.getIntegerArrayTopic("tag_id");
private static long[] array1 = new long[] {0l};
private static long[] array1 = new long[] {Integer.MIN_VALUE};
private static IntegerArrayEntry tagIdValues = tagId.getEntry(array1);

public static double[] getRawPoseData() throws ValueNotFoundOnTableError {
Expand All @@ -40,8 +40,7 @@ public static double[] getRawPoseData() throws ValueNotFoundOnTableError {
public static int[] getTagIds() throws ValueNotFoundOnTableError {
long[] longValues = tagIdValues.get();

if (longValues.length == 0
|| (longValues[0] == Integer.MIN_VALUE && longValues.length == 1)) {
if (longValues.length == 1 && longValues[0] == Integer.MIN_VALUE) {
throw new ValueNotFoundOnTableError("Tag ID Data Not Present on Table");
}

Expand Down

0 comments on commit 6a5164e

Please sign in to comment.