Skip to content

Commit

Permalink
Update LimelightData.java
Browse files Browse the repository at this point in the history
  • Loading branch information
thenetworkgrinch authored Jan 21, 2025
1 parent 7cb4550 commit 636c614
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions yall/java/limelight/structures/LimelightData.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public Optional<LimelightResults> getResults()
{
try
{
LimelightResults data = resultsObjectMapper.readValue(results.getString(""), Results.class).results;
LimelightResults data = resultsObjectMapper.readValue(results.getString(""), LimelightResults.class);
return Optional.of(data);

} catch (JsonProcessingException e)
Expand Down Expand Up @@ -276,21 +276,4 @@ public RawDetection[] getRawDetections()
return rawDetections;
}

/**
* Results Wrapper Class for JSON reading
*/
private class Results
{

/**
* "Results" Object for JSON reading.
*/
@JsonProperty("Results")
public LimelightResults results;

public Results() {
results = new LimelightResults();
}
}

}

0 comments on commit 636c614

Please sign in to comment.