From 35fceb9af0c4b10c88fd4d44a753bd64b5edfc95 Mon Sep 17 00:00:00 2001 From: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com> Date: Mon, 13 Nov 2023 22:38:47 -0500 Subject: [PATCH] Formatting fixes --- .../first/apriltag/AprilTagFieldLayoutTest.java | 14 +++++++++++++- .../java/edu/wpi/first/apriltag/AprilTagTest.java | 4 ++++ wpimath/build.gradle | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/apriltag/src/test/java/edu/wpi/first/apriltag/AprilTagFieldLayoutTest.java b/apriltag/src/test/java/edu/wpi/first/apriltag/AprilTagFieldLayoutTest.java index 7171991098f..f770f0538b8 100644 --- a/apriltag/src/test/java/edu/wpi/first/apriltag/AprilTagFieldLayoutTest.java +++ b/apriltag/src/test/java/edu/wpi/first/apriltag/AprilTagFieldLayoutTest.java @@ -1,14 +1,26 @@ +// Copyright (c) FIRST and other WPILib contributors. +// Open Source Software; you can modify and/or share it under the terms of +// the WPILib BSD license file in the root directory of this project. + package edu.wpi.first.apriltag; import static org.junit.jupiter.api.Assertions.assertEquals; +import edu.wpi.first.math.geometry.Pose3d; +import edu.wpi.first.math.geometry.Rotation3d; import java.util.List; import org.junit.jupiter.api.Test; public class AprilTagFieldLayoutTest { @Test void protobufTest() { - var layout = new AprilTagFieldLayout(List.of(), 12.3, 4.2); + var layout = + new AprilTagFieldLayout( + List.of( + new AprilTag(0, new Pose3d(0, 1, 1, new Rotation3d())), + new AprilTag(1, new Pose3d(2, 3, 1, new Rotation3d()))), + 12.3, + 4.2); var packedLayout = AprilTagFieldLayout.proto.createMessage(); AprilTagFieldLayout.proto.pack(packedLayout, layout); var unpackedLayout = AprilTagFieldLayout.proto.unpack(packedLayout); diff --git a/apriltag/src/test/java/edu/wpi/first/apriltag/AprilTagTest.java b/apriltag/src/test/java/edu/wpi/first/apriltag/AprilTagTest.java index 32cc185f0fd..038da19ef8b 100644 --- a/apriltag/src/test/java/edu/wpi/first/apriltag/AprilTagTest.java +++ b/apriltag/src/test/java/edu/wpi/first/apriltag/AprilTagTest.java @@ -1,3 +1,7 @@ +// Copyright (c) FIRST and other WPILib contributors. +// Open Source Software; you can modify and/or share it under the terms of +// the WPILib BSD license file in the root directory of this project. + package edu.wpi.first.apriltag; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/wpimath/build.gradle b/wpimath/build.gradle index b1159af19cc..3496ba7f982 100644 --- a/wpimath/build.gradle +++ b/wpimath/build.gradle @@ -123,7 +123,7 @@ task unitsHeaders(type: Zip) { } ext.includeDirs = [ - project.file('src/main/native/include/units') + project.file('src/main/native/include/units') ] ext.includeDirs.each {