diff --git a/.github/workflows/pregenerate.yml b/.github/workflows/pregenerate.yml index f356b087140..decca974b6c 100644 --- a/.github/workflows/pregenerate.yml +++ b/.github/workflows/pregenerate.yml @@ -32,6 +32,8 @@ jobs: run: ./ntcore/generate_topics.py - name: Run wpimath run: ./wpimath/generate_numbers.py && ./wpimath/generate_quickbuf.py --quickbuf_plugin=protoc-gen-quickbuf-1.3.3-linux-x86_64.exe + - name: Run wpiunits + run: ./wpiunits/generate_units.py - name: Run HIDs run: ./wpilibj/generate_hids.py && ./wpilibc/generate_hids.py && ./wpilibNewCommands/generate_hids.py - name: Run PWM Controllers diff --git a/docs/build.gradle b/docs/build.gradle index 526bae0c7bb..4104c6db874 100644 --- a/docs/build.gradle +++ b/docs/build.gradle @@ -203,7 +203,10 @@ task generateJavaDocs(type: Javadoc) { "-edu.wpi.first.math.system.struct," + "-edu.wpi.first.math.system.plant.proto," + "-edu.wpi.first.math.system.plant.struct," + - "-edu.wpi.first.math.trajectory.proto", true) + "-edu.wpi.first.math.trajectory.proto," + + // The .measure package contains generated source files for which automatic javadoc + // generation is very difficult to do meaningfully. + "-edu.wpi.first.units.measure", true) options.addBooleanOption("Xdoclint:html,missing,reference,syntax", true) options.addBooleanOption('html5', true) options.linkSource(true) diff --git a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/EpilogueConfiguration.java b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/EpilogueConfiguration.java index 868a7cb0bf6..84bdc1fae5d 100644 --- a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/EpilogueConfiguration.java +++ b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/EpilogueConfiguration.java @@ -9,8 +9,7 @@ import edu.wpi.first.epilogue.logging.errors.ErrorHandler; import edu.wpi.first.epilogue.logging.errors.ErrorPrinter; import edu.wpi.first.networktables.NetworkTableInstance; -import edu.wpi.first.units.Measure; -import edu.wpi.first.units.Time; +import edu.wpi.first.units.measure.Time; /** * A configuration object to be used by the generated {@code Epilogue} class to customize its @@ -29,13 +28,13 @@ public class EpilogueConfiguration { * The period Epilogue will log at. By default this is the period that the robot runs at. This is * the field used by bind to configure speed when adding the periodic logging function */ - public Measure