[wpilib] Fix AprilTagFieldLayout JSON property name typos (#4597)

This commit is contained in:
Tyler Veness
2022-11-08 13:27:21 -08:00
committed by GitHub
parent 2a8e0e1cc8
commit e92b6dd5f9
2 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ import java.util.Optional;
* <p>The JSON format contains two top-level objects, "tags" and "field". The "tags" object is a
* list of all AprilTags contained within a layout. Each AprilTag serializes to a JSON object
* containing an ID and a Pose3d. The "field" object is a descriptor of the size of the field in
* meters with "width" and "height" values. This is to account for arbitrary field sizes when
* meters with "width" and "length" values. This is to account for arbitrary field sizes when
* mirroring the poses.
*
* <p>Pose3ds are assumed to be measured from the bottom-left corner of the field, when the blue
@@ -176,13 +176,13 @@ public class AprilTagFieldLayout {
public double fieldWidth;
@SuppressWarnings("MemberName")
@JsonProperty(value = "height")
@JsonProperty(value = "length")
public double fieldLength;
@JsonCreator()
FieldDimensions(
@JsonProperty(required = true, value = "width") double fieldWidth,
@JsonProperty(required = true, value = "height") double fieldLength) {
@JsonProperty(required = true, value = "length") double fieldLength) {
this.fieldWidth = fieldWidth;
this.fieldLength = fieldLength;
}