mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[wpilib] Fix AprilTagFieldLayout JSON property name typos (#4597)
This commit is contained in:
@@ -29,7 +29,7 @@ namespace frc {
|
||||
* 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
|
||||
* "width" and "length" values. This is to account for arbitrary field sizes
|
||||
* when mirroring the poses.
|
||||
*
|
||||
* Pose3ds are assumed to be measured from the bottom-left corner of the field,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user