From 4af84a1c1277ddae9047635311fd96ff839960cd Mon Sep 17 00:00:00 2001 From: sciencewhiz Date: Sun, 26 Feb 2023 15:06:37 -0800 Subject: [PATCH] Fix Typos (NFC) (#5137) --- MavenArtifacts.md | 2 +- .../native/include/frc/apriltag/AprilTagFieldLayout.h | 2 +- .../java/edu/wpi/first/cscore/CameraServerJNI.java | 2 +- cscore/src/main/native/cpp/UnlimitedHandleResource.h | 2 +- cscore/src/main/native/cpp/cscore_cpp.cpp | 2 +- cscore/src/main/native/include/cscore_c.h | 2 +- cscore/src/main/native/include/cscore_cpp.h | 2 +- cscore/src/main/native/objcpp/UsbCameraImplObjc.mm | 4 ++-- cscore/src/main/native/windows/COMCreators.cpp | 2 +- .../test/java/edu/wpi/first/cscore/UsbCameraTest.java | 4 ++-- docs/build.gradle | 2 +- docs/theme.css | 4 ++-- .../src/main/java/edu/wpi/fields/FieldConfig.java | 2 +- hal/src/main/java/edu/wpi/first/hal/SimDevice.java | 2 +- hal/src/main/java/edu/wpi/first/hal/SimDeviceJNI.java | 2 +- hal/src/main/native/athena/AnalogInternal.h | 2 +- hal/src/main/native/athena/FPGAEncoder.h | 2 +- .../main/native/athena/frccansae/CANDeviceInterface.h | 2 +- hal/src/main/native/athena/rev/PHFrames.h | 2 +- hal/src/main/native/include/hal/DMA.h | 4 ++-- hal/src/main/native/include/hal/DriverStation.h | 2 +- hal/src/main/native/include/hal/Extensions.h | 4 ++-- hal/src/main/native/include/hal/PowerDistribution.h | 2 +- hal/src/main/native/include/hal/SimDevice.h | 4 ++-- hal/src/main/native/include/hal/cpp/UnsafeDIO.h | 4 ++-- .../include/hal/handles/UnlimitedHandleResource.h | 2 +- .../wpi/first/networktables/NetworkTableListener.java | 2 +- ntcore/src/main/native/cpp/net/ServerImpl.cpp | 2 +- ntcore/src/main/native/cpp/net3/ClientImpl3.cpp | 2 +- processstarter/src/main/native/linux/main.cpp | 2 +- test-scripts/deploy-and-run-test-on-robot.sh | 2 +- test-scripts/run-tests-on-robot.sh | 10 +++++----- wpilibc/src/main/native/cpp/ADIS16448_IMU.cpp | 2 +- wpilibc/src/main/native/cpp/ADIS16470_IMU.cpp | 2 +- wpilibc/src/main/native/cppcs/RobotBase.cpp | 2 +- .../src/main/native/include/frc/AnalogTriggerOutput.h | 2 +- wpilibc/src/main/native/include/frc/PWM.h | 2 +- wpilibc/src/main/native/include/frc/Resource.h | 4 ++-- wpilibc/src/main/native/include/frc/SerialPort.h | 2 +- .../examples/RomiReference/include/RobotContainer.h | 2 +- .../src/main/native/cpp/DigitalGlitchFilterTest.cpp | 2 +- .../src/main/native/cpp/FakeEncoderTest.cpp | 2 +- .../main/java/edu/wpi/first/wpilibj/ADIS16448_IMU.java | 2 +- .../main/java/edu/wpi/first/wpilibj/ADIS16470_IMU.java | 2 +- .../edu/wpi/first/wpilibj/AnalogTriggerOutput.java | 2 +- .../edu/wpi/first/wpilibj/livewindow/LiveWindow.java | 2 +- .../java/edu/wpi/first/wpilibj/commands/commands.json | 2 +- .../first/wpilibj/examples/apriltagsvision/Robot.java | 2 +- .../mecanumcontrollercommand/RobotContainer.java | 2 +- .../wpilibj/examples/romireference/RobotContainer.java | 2 +- .../edu/wpi/first/wpilibj/fixtures/SampleFixture.java | 4 ++-- .../first/wpilibj/mockhardware/FakeCounterSource.java | 4 ++-- .../wpilibj/mockhardware/FakePotentiometerSource.java | 2 +- .../edu/wpi/first/wpilibj/test/AntJunitLauncher.java | 6 +++--- wpimath/src/main/java/edu/wpi/first/math/Matrix.java | 2 +- .../main/java/edu/wpi/first/math/geometry/Twist2d.java | 2 +- .../main/java/edu/wpi/first/math/geometry/Twist3d.java | 2 +- .../edu/wpi/first/math/spline/SplineParameterizer.java | 8 ++++---- .../include/frc/estimator/SwerveDrivePoseEstimator.h | 2 +- wpimath/src/main/native/include/frc/geometry/Twist2d.h | 2 +- wpimath/src/main/native/include/frc/geometry/Twist3d.h | 2 +- .../native/include/frc/spline/SplineParameterizer.h | 2 +- wpimath/src/main/native/include/units/base.h | 10 +++++----- .../estimator/DifferentialDrivePoseEstimatorTest.cpp | 2 +- .../cpp/estimator/MecanumDrivePoseEstimatorTest.cpp | 2 +- .../cpp/estimator/SwerveDrivePoseEstimatorTest.cpp | 2 +- wpinet/src/main/native/cpp/http_parser.cpp | 4 ++-- wpinet/src/main/native/include/wpinet/http_parser.h | 2 +- wpinet/src/main/native/include/wpinet/uv/Idle.h | 2 +- wpiutil/src/test/native/cpp/json/unit-unicode.cpp | 2 +- wpiutil/src/test/native/cpp/priority_mutex_test.cpp | 2 +- 71 files changed, 95 insertions(+), 95 deletions(-) diff --git a/MavenArtifacts.md b/MavenArtifacts.md index 8ea5a49927..655f9c5a36 100644 --- a/MavenArtifacts.md +++ b/MavenArtifacts.md @@ -16,7 +16,7 @@ We provide two base types of artifacts. The first types are Java artifacts. These are usually published as `jar` files. Usually, the actual jar file is published with no classifier. The sources are published with the `-sources` classifier, and the javadocs are published with the `-javadoc` classifier. -The second types are native artifacts. These are usually published as `zip` files (except for the `JNI` artifact types, which are `jar` files. See below for information on this). The `-sources` and `-headers` classifiers contain the sources and headers respecively for the library. Each artifact also contains a classifier for each platform we publish. This platform is in the format `{os}{arch}`. The platform artifact only contains the binaries for a specific platform. In addition, we provide a `-all` classifier. This classifer combines all of the platform artifacts into a single artifact. This is useful for tools that cannot determine what version to use during builds. However, we recommend using the platform specific classifier when possible. Note that the binary artifacts never contain the headers, you always need the `-headers` classifier to get those. +The second types are native artifacts. These are usually published as `zip` files (except for the `JNI` artifact types, which are `jar` files. See below for information on this). The `-sources` and `-headers` classifiers contain the sources and headers respectively for the library. Each artifact also contains a classifier for each platform we publish. This platform is in the format `{os}{arch}`. The platform artifact only contains the binaries for a specific platform. In addition, we provide a `-all` classifier. This classifier combines all of the platform artifacts into a single artifact. This is useful for tools that cannot determine what version to use during builds. However, we recommend using the platform specific classifier when possible. Note that the binary artifacts never contain the headers, you always need the `-headers` classifier to get those. ## Artifact Names diff --git a/apriltag/src/main/native/include/frc/apriltag/AprilTagFieldLayout.h b/apriltag/src/main/native/include/frc/apriltag/AprilTagFieldLayout.h index 9cfae22005..83082c88ff 100644 --- a/apriltag/src/main/native/include/frc/apriltag/AprilTagFieldLayout.h +++ b/apriltag/src/main/native/include/frc/apriltag/AprilTagFieldLayout.h @@ -79,7 +79,7 @@ class WPILIB_DLLEXPORT AprilTagFieldLayout { /** * Sets the origin for tag pose transformation. * - * This tranforms the Pose3ds returned by GetTagPose(int) to return the + * This transforms the Pose3ds returned by GetTagPose(int) to return the * correct pose relative to the provided origin. * * @param origin The new origin for tag transformations diff --git a/cscore/src/main/java/edu/wpi/first/cscore/CameraServerJNI.java b/cscore/src/main/java/edu/wpi/first/cscore/CameraServerJNI.java index 37f35b0b84..148be68cfc 100644 --- a/cscore/src/main/java/edu/wpi/first/cscore/CameraServerJNI.java +++ b/cscore/src/main/java/edu/wpi/first/cscore/CameraServerJNI.java @@ -143,7 +143,7 @@ public class CameraServerJNI { public static native void releaseSource(int source); // - // Camera Source Common Property Fuctions + // Camera Source Common Property Functions // public static native void setCameraBrightness(int source, int brightness); diff --git a/cscore/src/main/native/cpp/UnlimitedHandleResource.h b/cscore/src/main/native/cpp/UnlimitedHandleResource.h index 28ad30159f..fcde794c98 100644 --- a/cscore/src/main/native/cpp/UnlimitedHandleResource.h +++ b/cscore/src/main/native/cpp/UnlimitedHandleResource.h @@ -16,7 +16,7 @@ namespace cs { // The UnlimitedHandleResource class is a way to track handles. This version -// allows an unlimted number of handles that are allocated sequentially. When +// allows an unlimited number of handles that are allocated sequentially. When // possible, indices are reused to save memory usage and keep the array length // down. // However, automatic array management has not been implemented, but might be in diff --git a/cscore/src/main/native/cpp/cscore_cpp.cpp b/cscore/src/main/native/cpp/cscore_cpp.cpp index f81405bbf9..a46b805c01 100644 --- a/cscore/src/main/native/cpp/cscore_cpp.cpp +++ b/cscore/src/main/native/cpp/cscore_cpp.cpp @@ -439,7 +439,7 @@ void ReleaseSource(CS_Source source, CS_Status* status) { } // -// Camera Source Common Property Fuctions +// Camera Source Common Property Functions // void SetCameraBrightness(CS_Source source, int brightness, CS_Status* status) { diff --git a/cscore/src/main/native/include/cscore_c.h b/cscore/src/main/native/include/cscore_c.h index ba8c811923..fb3f3f88a2 100644 --- a/cscore/src/main/native/include/cscore_c.h +++ b/cscore/src/main/native/include/cscore_c.h @@ -323,7 +323,7 @@ void CS_ReleaseSource(CS_Source source, CS_Status* status); /** @} */ /** - * @defgroup cscore_source_prop_cfunc Camera Source Common Property Fuctions + * @defgroup cscore_source_prop_cfunc Camera Source Common Property Functions * @{ */ void CS_SetCameraBrightness(CS_Source source, int brightness, diff --git a/cscore/src/main/native/include/cscore_cpp.h b/cscore/src/main/native/include/cscore_cpp.h index 0031e5ed5a..95f3b92697 100644 --- a/cscore/src/main/native/include/cscore_cpp.h +++ b/cscore/src/main/native/include/cscore_cpp.h @@ -262,7 +262,7 @@ void ReleaseSource(CS_Source source, CS_Status* status); /** @} */ /** - * @defgroup cscore_camera_property_func Camera Source Common Property Fuctions + * @defgroup cscore_camera_property_func Camera Source Common Property Functions * @{ */ void SetCameraBrightness(CS_Source source, int brightness, CS_Status* status); diff --git a/cscore/src/main/native/objcpp/UsbCameraImplObjc.mm b/cscore/src/main/native/objcpp/UsbCameraImplObjc.mm index febe6a55f0..0b8f18a0b5 100644 --- a/cscore/src/main/native/objcpp/UsbCameraImplObjc.mm +++ b/cscore/src/main/native/objcpp/UsbCameraImplObjc.mm @@ -79,7 +79,7 @@ using namespace cs; default: OBJCERROR( "Camera access explicitly blocked for application. No cameras are " - "accessable"); + "accessible"); self.isAuthorized = false; // TODO log break; @@ -524,7 +524,7 @@ static cs::VideoMode::PixelFormat FourCCToPixelFormat(FourCharCode fourcc) { if (!self.isAuthorized) { OBJCERROR( "Camera access not authorized for application. No cameras are " - "accessable"); + "accessible"); return false; } diff --git a/cscore/src/main/native/windows/COMCreators.cpp b/cscore/src/main/native/windows/COMCreators.cpp index f9f5cae8f2..5ccddff267 100644 --- a/cscore/src/main/native/windows/COMCreators.cpp +++ b/cscore/src/main/native/windows/COMCreators.cpp @@ -78,7 +78,7 @@ STDMETHODIMP SourceReaderCB::OnReadSample(HRESULT hrStatus, DWORD dwStreamIndex, return S_OK; if (SUCCEEDED(hrStatus)) { if (pSample) { - // Prcoess sample + // Process sample source->ProcessFrame(pSample, m_mode); // DO NOT release the frame } diff --git a/cscore/src/test/java/edu/wpi/first/cscore/UsbCameraTest.java b/cscore/src/test/java/edu/wpi/first/cscore/UsbCameraTest.java index f0a679f6a8..05e1aa6584 100644 --- a/cscore/src/test/java/edu/wpi/first/cscore/UsbCameraTest.java +++ b/cscore/src/test/java/edu/wpi/first/cscore/UsbCameraTest.java @@ -24,7 +24,7 @@ class UsbCameraTest { static class ConnectVerbose { @Test void setConnectVerboseEnabledTest() { - try (UsbCamera camera = new UsbCamera("Nonexistant Camera", getNonexistentCameraDev())) { + try (UsbCamera camera = new UsbCamera("Nonexistent Camera", getNonexistentCameraDev())) { camera.setConnectVerbose(1); CompletableFuture result = new CompletableFuture<>(); @@ -38,7 +38,7 @@ class UsbCameraTest { @Test void setConnectVerboseDisabledTest() { - try (UsbCamera camera = new UsbCamera("Nonexistant Camera", getNonexistentCameraDev())) { + try (UsbCamera camera = new UsbCamera("Nonexistent Camera", getNonexistentCameraDev())) { camera.setConnectVerbose(0); CompletableFuture result = new CompletableFuture<>(); diff --git a/docs/build.gradle b/docs/build.gradle index ab5a9241d3..33fa7fc663 100644 --- a/docs/build.gradle +++ b/docs/build.gradle @@ -239,7 +239,7 @@ task generateJavaDocs(type: Javadoc) { if (JavaVersion.current().isJava8Compatible() && project.hasProperty('docWarningsAsErrors')) { // Treat javadoc warnings as errors. // - // The second argument '-quiet' is a hack. The one paramater + // The second argument '-quiet' is a hack. The one parameter // addStringOption() doesn't work, so we add '-quiet', which is added // anyway by gradle. See https://github.com/gradle/gradle/issues/2354. // diff --git a/docs/theme.css b/docs/theme.css index a5bb22f08b..2bca53a108 100644 --- a/docs/theme.css +++ b/docs/theme.css @@ -151,7 +151,7 @@ html { --side-nav-arrow-opacity: 0; --side-nav-arrow-hover-opacity: 0.9; - /* height of an item in any tree / collapsable table */ + /* height of an item in any tree / collapsible table */ --tree-item-height: 30px; --darkmode-toggle-button-icon: "☀️"; @@ -1615,7 +1615,7 @@ SOFTWARE. html { /* side nav width. MUST be = `TREEVIEW_WIDTH`. - * Make sure it is wide enought to contain the page title (logo + title + version) + * Make sure it is wide enough to contain the page title (logo + title + version) */ --side-nav-fixed-width: 340px; --menu-display: none; diff --git a/fieldImages/src/main/java/edu/wpi/fields/FieldConfig.java b/fieldImages/src/main/java/edu/wpi/fields/FieldConfig.java index a8dd0874c9..f33ddca6dc 100644 --- a/fieldImages/src/main/java/edu/wpi/fields/FieldConfig.java +++ b/fieldImages/src/main/java/edu/wpi/fields/FieldConfig.java @@ -79,7 +79,7 @@ public class FieldConfig { * * @param resourcePath The path to the resource file * @return The field configuration - * @throws IOException Throws if the resoure could not be loaded + * @throws IOException Throws if the resource could not be loaded */ public static FieldConfig loadFromResource(String resourcePath) throws IOException { try (InputStream stream = FieldConfig.class.getResourceAsStream(resourcePath); diff --git a/hal/src/main/java/edu/wpi/first/hal/SimDevice.java b/hal/src/main/java/edu/wpi/first/hal/SimDevice.java index 85d438fb34..21ac69aaaa 100644 --- a/hal/src/main/java/edu/wpi/first/hal/SimDevice.java +++ b/hal/src/main/java/edu/wpi/first/hal/SimDevice.java @@ -32,7 +32,7 @@ public class SimDevice implements AutoCloseable { * Creates a simulated device. * *

The device name must be unique. Returns null if the device name already exists. If multiple - * instances of the same device are desired, recommend appending the instance/unique identifer in + * instances of the same device are desired, recommend appending the instance/unique identifier in * brackets to the base name, e.g. "device[1]". * *

null is returned if not in simulation. diff --git a/hal/src/main/java/edu/wpi/first/hal/SimDeviceJNI.java b/hal/src/main/java/edu/wpi/first/hal/SimDeviceJNI.java index 37ad79dd50..4352a2df48 100644 --- a/hal/src/main/java/edu/wpi/first/hal/SimDeviceJNI.java +++ b/hal/src/main/java/edu/wpi/first/hal/SimDeviceJNI.java @@ -13,7 +13,7 @@ public class SimDeviceJNI extends JNIWrapper { * Creates a simulated device. * *

The device name must be unique. 0 is returned if the device name already exists. If multiple - * instances of the same device are desired, recommend appending the instance/unique identifer in + * instances of the same device are desired, recommend appending the instance/unique identifier in * brackets to the base name, e.g. "device[1]". * *

0 is returned if not in simulation. diff --git a/hal/src/main/native/athena/AnalogInternal.h b/hal/src/main/native/athena/AnalogInternal.h index 431c6242b7..eb8116b1d3 100644 --- a/hal/src/main/native/athena/AnalogInternal.h +++ b/hal/src/main/native/athena/AnalogInternal.h @@ -69,7 +69,7 @@ void setAnalogNumChannelsToActivate(int32_t channels); * number of active channels and the sample rate. * * When the number of channels changes, use the new value. Otherwise, - * return the curent value. + * return the current value. * * @return Value to write to the active channels field. */ diff --git a/hal/src/main/native/athena/FPGAEncoder.h b/hal/src/main/native/athena/FPGAEncoder.h index b401ccdca5..a819d96b8a 100644 --- a/hal/src/main/native/athena/FPGAEncoder.h +++ b/hal/src/main/native/athena/FPGAEncoder.h @@ -37,7 +37,7 @@ int32_t HAL_GetFPGAEncoder(HAL_FPGAEncoderHandle fpgaEncoderHandle, /** * Returns the period of the most recent pulse. * Returns the period of the most recent Encoder pulse in seconds. - * This method compenstates for the decoding type. + * This method compensates for the decoding type. * * @deprecated Use GetRate() in favor of this method. This returns unscaled * periods and GetRate() scales using value from SetDistancePerPulse(). diff --git a/hal/src/main/native/athena/frccansae/CANDeviceInterface.h b/hal/src/main/native/athena/frccansae/CANDeviceInterface.h index 8fe4235255..d9c9a0cc64 100644 --- a/hal/src/main/native/athena/frccansae/CANDeviceInterface.h +++ b/hal/src/main/native/athena/frccansae/CANDeviceInterface.h @@ -51,7 +51,7 @@ struct DeviceDescriptor // Bootloader version. Will not change for the life of the product, but additional // field upgrade features could be added in newer hardware. char bootloaderRev[MAX_STRING_LEN]; - // Manufacture Date. Could be a calender date or just the FRC season year. + // Manufacture Date. Could be a calendar date or just the FRC season year. // Also helps troubleshooting "old ones" vs "new ones". char manufactureDate[MAX_STRING_LEN]; // General status of the hardware. For example if the device is in bootloader diff --git a/hal/src/main/native/athena/rev/PHFrames.h b/hal/src/main/native/athena/rev/PHFrames.h index 20411a86b7..a1849e1e6e 100644 --- a/hal/src/main/native/athena/rev/PHFrames.h +++ b/hal/src/main/native/athena/rev/PHFrames.h @@ -79,7 +79,7 @@ extern "C" { /** * Signals in message Compressor_Config. * - * Configures compressor to use digitial/analog sensors + * Configures compressor to use digital/analog sensors * * All signal values are as on the CAN bus. */ diff --git a/hal/src/main/native/include/hal/DMA.h b/hal/src/main/native/include/hal/DMA.h index 7610d9b8ba..b8651e5703 100644 --- a/hal/src/main/native/include/hal/DMA.h +++ b/hal/src/main/native/include/hal/DMA.h @@ -40,7 +40,7 @@ extern "C" { #endif /** - * Initializes an object for peforming DMA transfers. + * Initializes an object for performing DMA transfers. * * @param[out] status Error status variable. 0 on success. * @return the created dma handle @@ -310,7 +310,7 @@ enum HAL_DMAReadStatus HAL_ReadDMADirect(void* dmaPointer, * timing out * @param[in] remainingOut the number of samples remaining in the queue * @param[out] status Error status variable. 0 on success. - * @return the succes result of the sample read + * @return the success result of the sample read */ enum HAL_DMAReadStatus HAL_ReadDMA(HAL_DMAHandle handle, HAL_DMASample* dmaSample, diff --git a/hal/src/main/native/include/hal/DriverStation.h b/hal/src/main/native/include/hal/DriverStation.h index d7d69644f6..fb0af9aa1a 100644 --- a/hal/src/main/native/include/hal/DriverStation.h +++ b/hal/src/main/native/include/hal/DriverStation.h @@ -28,7 +28,7 @@ extern "C" { * @param errorCode the error code * @param isLVCode true for a LV error code, false for a standard error code * @param details the details of the error - * @param location the file location of the errror + * @param location the file location of the error * @param callStack the callstack of the error * @param printMsg true to print the error message to stdout as well as to the * DS diff --git a/hal/src/main/native/include/hal/Extensions.h b/hal/src/main/native/include/hal/Extensions.h index 6f64fdb00c..b39cc36497 100644 --- a/hal/src/main/native/include/hal/Extensions.h +++ b/hal/src/main/native/include/hal/Extensions.h @@ -31,7 +31,7 @@ extern "C" { * Expected to be called internally, not by users. * * @param library the library path - * @return the succes state of the initialization + * @return the success state of the initialization */ int HAL_LoadOneExtension(const char* library); @@ -39,7 +39,7 @@ int HAL_LoadOneExtension(const char* library); * Loads any extra halsim libraries provided in the HALSIM_EXTENSIONS * environment variable. * - * @return the succes state of the initialization + * @return the success state of the initialization */ int HAL_LoadExtensions(void); diff --git a/hal/src/main/native/include/hal/PowerDistribution.h b/hal/src/main/native/include/hal/PowerDistribution.h index 7c2b582a1a..0a96437a32 100644 --- a/hal/src/main/native/include/hal/PowerDistribution.h +++ b/hal/src/main/native/include/hal/PowerDistribution.h @@ -36,7 +36,7 @@ extern "C" { * Initializes a Power Distribution Panel. * * @param[in] moduleNumber the module number to initialize - * @param[in] type the type of module to intialize + * @param[in] type the type of module to initialize * @param[in] allocationLocation the location where the allocation is occurring * @param[out] status Error status variable. 0 on success. * @return the created PowerDistribution diff --git a/hal/src/main/native/include/hal/SimDevice.h b/hal/src/main/native/include/hal/SimDevice.h index d51b37416f..d20e1e6454 100644 --- a/hal/src/main/native/include/hal/SimDevice.h +++ b/hal/src/main/native/include/hal/SimDevice.h @@ -47,7 +47,7 @@ extern "C" { * * The device name must be unique. 0 is returned if the device name already * exists. If multiple instances of the same device are desired, recommend - * appending the instance/unique identifer in brackets to the base name, + * appending the instance/unique identifier in brackets to the base name, * e.g. "device[1]". * * 0 is returned if not in simulation. @@ -663,7 +663,7 @@ class SimDevice { * * The device name must be unique. Returns null if the device name * already exists. If multiple instances of the same device are desired, - * recommend appending the instance/unique identifer in brackets to the base + * recommend appending the instance/unique identifier in brackets to the base * name, e.g. "device[1]". * * If not in simulation, results in an "empty" object that evaluates to false diff --git a/hal/src/main/native/include/hal/cpp/UnsafeDIO.h b/hal/src/main/native/include/hal/cpp/UnsafeDIO.h index c849fd08d9..e7f286bb54 100644 --- a/hal/src/main/native/include/hal/cpp/UnsafeDIO.h +++ b/hal/src/main/native/include/hal/cpp/UnsafeDIO.h @@ -63,8 +63,8 @@ int32_t ComputeDigitalMask(HAL_DigitalHandle handle, int32_t* status); /** * Unsafe digital output set function - * This function can be used to perform fast and determinstically set digital - * outputs. This function holds the DIO lock, so calling anyting other then + * This function can be used to perform fast and deterministically set digital + * outputs. This function holds the DIO lock, so calling anything other then * functions on the Proxy object passed as a parameter can deadlock your * program. * diff --git a/hal/src/main/native/include/hal/handles/UnlimitedHandleResource.h b/hal/src/main/native/include/hal/handles/UnlimitedHandleResource.h index 09510ac27b..2048f6272c 100644 --- a/hal/src/main/native/include/hal/handles/UnlimitedHandleResource.h +++ b/hal/src/main/native/include/hal/handles/UnlimitedHandleResource.h @@ -19,7 +19,7 @@ namespace hal { /** * The UnlimitedHandleResource class is a way to track handles. This version - * allows an unlimted number of handles that are allocated sequentially. When + * allows an unlimited number of handles that are allocated sequentially. When * possible, indices are reused to save memory usage and keep the array length * down. * However, automatic array management has not been implemented, but might be in diff --git a/ntcore/src/main/java/edu/wpi/first/networktables/NetworkTableListener.java b/ntcore/src/main/java/edu/wpi/first/networktables/NetworkTableListener.java index 2568738c2a..c34cd58cb9 100644 --- a/ntcore/src/main/java/edu/wpi/first/networktables/NetworkTableListener.java +++ b/ntcore/src/main/java/edu/wpi/first/networktables/NetworkTableListener.java @@ -113,7 +113,7 @@ public final class NetworkTableListener implements AutoCloseable { * Create a time synchronization listener. * * @param inst instance - * @param immediateNotify notify listener of current time synchonization value + * @param immediateNotify notify listener of current time synchronization value * @param listener listener function * @return Listener */ diff --git a/ntcore/src/main/native/cpp/net/ServerImpl.cpp b/ntcore/src/main/native/cpp/net/ServerImpl.cpp index b1c02117aa..81749083eb 100644 --- a/ntcore/src/main/native/cpp/net/ServerImpl.cpp +++ b/ntcore/src/main/native/cpp/net/ServerImpl.cpp @@ -1287,7 +1287,7 @@ void ClientData3::EntryAssign(std::string_view name, unsigned int id, auto topic = m_server.CreateTopic(this, name, typeStr, properties); TopicData3* topic3 = GetTopic3(topic); if (topic3->published || topic3->sentAssign) { - WARNING("ignorning client {} duplicate publish of '{}'", m_id, name); + WARNING("ignoring client {} duplicate publish of '{}'", m_id, name); return; } ++topic3->seqNum; diff --git a/ntcore/src/main/native/cpp/net3/ClientImpl3.cpp b/ntcore/src/main/native/cpp/net3/ClientImpl3.cpp index 064a1d358b..179b577857 100644 --- a/ntcore/src/main/native/cpp/net3/ClientImpl3.cpp +++ b/ntcore/src/main/native/cpp/net3/ClientImpl3.cpp @@ -233,7 +233,7 @@ void CImpl::SendPeriodic(uint64_t curTimeMs, bool initial, bool flush) { auto out = m_wire.Send(); - // send keep-alives + // send keep-alive if (curTimeMs >= m_nextKeepAliveTimeMs) { if (!CheckNetworkReady(curTimeMs)) { return; diff --git a/processstarter/src/main/native/linux/main.cpp b/processstarter/src/main/native/linux/main.cpp index 255be937eb..1ddf1cdc6d 100644 --- a/processstarter/src/main/native/linux/main.cpp +++ b/processstarter/src/main/native/linux/main.cpp @@ -24,7 +24,7 @@ int main(int argc, char* argv[]) { std::perror("readlink"); return 1; } else if (readlink_len == PATH_MAX) { - std::printf("Truncation occured\n"); + std::printf("Truncation occurred\n"); return 1; } diff --git a/test-scripts/deploy-and-run-test-on-robot.sh b/test-scripts/deploy-and-run-test-on-robot.sh index ba67d8ba17..1caf045daa 100755 --- a/test-scripts/deploy-and-run-test-on-robot.sh +++ b/test-scripts/deploy-and-run-test-on-robot.sh @@ -35,7 +35,7 @@ DESTINATION_TEST_RESULTS=none LOCAL_TEST_RESULTS=none -# Begin searching for options from the second paramater on +# Begin searching for options from the second parameter on PARAM_ARGS=${@:2} if [[ "$1" = java ]]; then diff --git a/test-scripts/run-tests-on-robot.sh b/test-scripts/run-tests-on-robot.sh index 457818cd43..32b66b5eaa 100755 --- a/test-scripts/run-tests-on-robot.sh +++ b/test-scripts/run-tests-on-robot.sh @@ -9,7 +9,7 @@ # This file is intended to be run in the DEFAULT_TEST_DIR on the roboRIO. # Do not attempt to run this file on your local system. # There is one file (delploy-and-run-test-on-robot.sh) that is designed to -# deploy this file allong with the compiled tests for you. +# deploy this file along with the compiled tests for you. # Configurable variables source config.sh @@ -24,9 +24,9 @@ Where: -h Show this help text -d The directory where the tests have been placed. This is done to prevent overwriting an already running program. - This scrip will automatically move the test into the ${DEFAULT_TEST_DIR} + This script will automatically move the test into the ${DEFAULT_TEST_DIR} directory. - Default: Assumes the test is in the same directory as this scrip. + Default: Assumes the test is in the same directory as this script. -A Do not use the default arguments for the given language. arg The arguments to be passed to test." @@ -42,7 +42,7 @@ fi LANGUAGE=none TEST_FILE=none TEST_DIR="$DEFAULT_TEST_DIR" -# Begin searching for options from the second paramater on +# Begin searching for options from the second parameter on PARAM_ARGS=${@:2} # Where the test arguments start TEST_RUN_ARGS=${@:2} @@ -125,7 +125,7 @@ elif [[ $TEST_DIR != "$DEFAULT_TEST_DIR" ]]; then mv "${TEST_DIR}/${TEST_FILE}" "${DEFAULT_TEST_DIR}" fi -# Make sure the excecutable file has permission to run +# Make sure the executable file has permission to run # Get the serial number and FPGADeviceCode for this rio export serialnum=`/sbin/fw_printenv -n serial#` diff --git a/wpilibc/src/main/native/cpp/ADIS16448_IMU.cpp b/wpilibc/src/main/native/cpp/ADIS16448_IMU.cpp index 7048720e59..cac2d08613 100644 --- a/wpilibc/src/main/native/cpp/ADIS16448_IMU.cpp +++ b/wpilibc/src/main/native/cpp/ADIS16448_IMU.cpp @@ -285,7 +285,7 @@ bool ADIS16448_IMU::SwitchToAutoSPI() { m_spi->SetAutoTransmitData({{GLOB_CMD}}, 27); // Configure auto stall time m_spi->ConfigureAutoStall(HAL_SPI_kMXP, 100, 1000, 255); - // Kick off DMA SPI (Note: Device configration impossible after SPI DMA is + // Kick off DMA SPI (Note: Device configuration impossible after SPI DMA is // activated) m_spi->StartAutoTrigger(*m_auto_interrupt, true, false); // Check to see if the acquire thread is running. If not, kick one off. diff --git a/wpilibc/src/main/native/cpp/ADIS16470_IMU.cpp b/wpilibc/src/main/native/cpp/ADIS16470_IMU.cpp index e1cd9863a6..c987de6b99 100644 --- a/wpilibc/src/main/native/cpp/ADIS16470_IMU.cpp +++ b/wpilibc/src/main/native/cpp/ADIS16470_IMU.cpp @@ -279,7 +279,7 @@ bool ADIS16470_IMU::SwitchToAutoSPI() { } // Configure auto stall time m_spi->ConfigureAutoStall(HAL_SPI_kOnboardCS0, 5, 1000, 1); - // Kick off DMA SPI (Note: Device configration impossible after SPI DMA is + // Kick off DMA SPI (Note: Device configuration impossible after SPI DMA is // activated) DR High = Data good (data capture should be triggered on the // rising edge) m_spi->StartAutoTrigger(*m_auto_interrupt, true, false); diff --git a/wpilibc/src/main/native/cppcs/RobotBase.cpp b/wpilibc/src/main/native/cppcs/RobotBase.cpp index 26552eb72a..257c6e00fc 100644 --- a/wpilibc/src/main/native/cppcs/RobotBase.cpp +++ b/wpilibc/src/main/native/cppcs/RobotBase.cpp @@ -225,7 +225,7 @@ RobotBase::RobotBase() { SetupMathShared(); auto inst = nt::NetworkTableInstance::GetDefault(); - // subscribe to "" to force persistent values to progagate to local + // subscribe to "" to force persistent values to propagate to local nt::SubscribeMultiple(inst.GetHandle(), {{std::string_view{}}}); #ifdef __FRC_ROBORIO__ inst.StartServer("/home/lvuser/networktables.json"); diff --git a/wpilibc/src/main/native/include/frc/AnalogTriggerOutput.h b/wpilibc/src/main/native/include/frc/AnalogTriggerOutput.h index 6f52cab452..88bd6c3cab 100644 --- a/wpilibc/src/main/native/include/frc/AnalogTriggerOutput.h +++ b/wpilibc/src/main/native/include/frc/AnalogTriggerOutput.h @@ -30,7 +30,7 @@ class AnalogTrigger; * range defined by the limits. * * The RisingPulse and FallingPulse outputs detect an instantaneous transition - * from above the upper limit to below the lower limit, and vise versa. These + * from above the upper limit to below the lower limit, and vice versa. These * pulses represent a rollover condition of a sensor and can be routed to an up * / down counter or to interrupts. Because the outputs generate a pulse, they * cannot be read directly. To help ensure that a rollover condition is not diff --git a/wpilibc/src/main/native/include/frc/PWM.h b/wpilibc/src/main/native/include/frc/PWM.h index e5089151f4..689a4cfb68 100644 --- a/wpilibc/src/main/native/include/frc/PWM.h +++ b/wpilibc/src/main/native/include/frc/PWM.h @@ -149,7 +149,7 @@ class PWM : public wpi::Sendable, public wpi::SendableHelper { virtual double GetSpeed() const; /** - * Temporarily disables the PWM output. The next set call will reenable + * Temporarily disables the PWM output. The next set call will re-enable * the output. */ virtual void SetDisabled(); diff --git a/wpilibc/src/main/native/include/frc/Resource.h b/wpilibc/src/main/native/include/frc/Resource.h index 4109cc461c..6d9dfa5850 100644 --- a/wpilibc/src/main/native/include/frc/Resource.h +++ b/wpilibc/src/main/native/include/frc/Resource.h @@ -17,7 +17,7 @@ namespace frc { /** * The Resource class is a convenient way to track allocated resources. * - * It tracks them as indicies in the range [0 .. elements - 1]. E.g. the library + * It tracks them as indices in the range [0 .. elements - 1]. E.g. the library * uses this to track hardware channel allocation. * * The Resource class does not allocate the hardware channels or other @@ -46,7 +46,7 @@ class Resource { * Allocate storage for a new instance of Resource. * * Allocate a bool array of values that will get initialized to indicate that - * no resources have been allocated yet. The indicies of the resources are + * no resources have been allocated yet. The indices of the resources are * [0 .. elements - 1]. */ explicit Resource(uint32_t size); diff --git a/wpilibc/src/main/native/include/frc/SerialPort.h b/wpilibc/src/main/native/include/frc/SerialPort.h index 7fff14acaf..dcc0a2e068 100644 --- a/wpilibc/src/main/native/include/frc/SerialPort.h +++ b/wpilibc/src/main/native/include/frc/SerialPort.h @@ -16,7 +16,7 @@ namespace frc { * Driver for the RS-232 serial port on the roboRIO. * * The current implementation uses the VISA formatted I/O mode. This means that - * all traffic goes through the fomatted buffers. This allows the intermingled + * all traffic goes through the formatted buffers. This allows the intermingled * use of Printf(), Scanf(), and the raw buffer accessors Read() and Write(). * * More information can be found in the NI-VISA User Manual here: diff --git a/wpilibcExamples/src/main/cpp/examples/RomiReference/include/RobotContainer.h b/wpilibcExamples/src/main/cpp/examples/RomiReference/include/RobotContainer.h index ab88b15a95..96cb34667f 100644 --- a/wpilibcExamples/src/main/cpp/examples/RomiReference/include/RobotContainer.h +++ b/wpilibcExamples/src/main/cpp/examples/RomiReference/include/RobotContainer.h @@ -41,7 +41,7 @@ class RobotContainer { frc2::Command* GetAutonomousCommand(); private: - // Assumes a gamepad plugged into channnel 0 + // Assumes a gamepad plugged into channel 0 frc::Joystick m_controller{0}; frc::SendableChooser m_chooser; diff --git a/wpilibcIntegrationTests/src/main/native/cpp/DigitalGlitchFilterTest.cpp b/wpilibcIntegrationTests/src/main/native/cpp/DigitalGlitchFilterTest.cpp index d7c1a236f8..1081f2ecf7 100644 --- a/wpilibcIntegrationTests/src/main/native/cpp/DigitalGlitchFilterTest.cpp +++ b/wpilibcIntegrationTests/src/main/native/cpp/DigitalGlitchFilterTest.cpp @@ -14,7 +14,7 @@ * * This test actually tests everything except that the actual FPGA * implementation works as intended. We configure the FPGA and then query it to - * make sure that the acutal configuration matches. + * make sure that the actual configuration matches. */ TEST(DigitalGlitchFilterTest, Basic) { frc::DigitalInput input1{1}; diff --git a/wpilibcIntegrationTests/src/main/native/cpp/FakeEncoderTest.cpp b/wpilibcIntegrationTests/src/main/native/cpp/FakeEncoderTest.cpp index 3442b48025..66f81e0d2e 100644 --- a/wpilibcIntegrationTests/src/main/native/cpp/FakeEncoderTest.cpp +++ b/wpilibcIntegrationTests/src/main/native/cpp/FakeEncoderTest.cpp @@ -62,7 +62,7 @@ class FakeEncoderTest : public testing::Test { }; /** - * Test the encoder by reseting it to 0 and reading the value. + * Test the encoder by resetting it to 0 and reading the value. */ TEST_F(FakeEncoderTest, DefaultState) { EXPECT_DOUBLE_EQ(0.0, m_encoder.Get()) << "The encoder did not start at 0."; diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/ADIS16448_IMU.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/ADIS16448_IMU.java index a005b73cd7..7f9446b830 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/ADIS16448_IMU.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/ADIS16448_IMU.java @@ -455,7 +455,7 @@ public class ADIS16448_IMU implements AutoCloseable, NTSendable { m_spi.setAutoTransmitData(new byte[] {GLOB_CMD}, 27); // Configure auto stall time m_spi.configureAutoStall(100, 1000, 255); - // Kick off auto SPI (Note: Device configration impossible after auto SPI is + // Kick off auto SPI (Note: Device configuration impossible after auto SPI is // activated) m_spi.startAutoTrigger(m_auto_interrupt, true, false); diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/ADIS16470_IMU.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/ADIS16470_IMU.java index f287cab4e0..56c2641cd4 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/ADIS16470_IMU.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/ADIS16470_IMU.java @@ -511,7 +511,7 @@ public class ADIS16470_IMU implements AutoCloseable, NTSendable { } // Configure auto stall time m_spi.configureAutoStall(5, 1000, 1); - // Kick off auto SPI (Note: Device configration impossible after auto SPI is + // Kick off auto SPI (Note: Device configuration impossible after auto SPI is // activated) // DR High = Data good (data capture should be triggered on the rising edge) m_spi.startAutoTrigger(m_auto_interrupt, true, false); diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/AnalogTriggerOutput.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/AnalogTriggerOutput.java index 0f37edc251..c80179b5c4 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/AnalogTriggerOutput.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/AnalogTriggerOutput.java @@ -26,7 +26,7 @@ import edu.wpi.first.util.sendable.SendableBuilder; * limits. * *

The RisingPulse and FallingPulse outputs detect an instantaneous transition from above the - * upper limit to below the lower limit, and vise versa. These pulses represent a rollover condition + * upper limit to below the lower limit, and vice versa. These pulses represent a rollover condition * of a sensor and can be routed to an up / down counter or to interrupts. Because the outputs * generate a pulse, they cannot be read directly. To help ensure that a rollover condition is not * missed, there is an average rejection filter available that operates on the upper 8 bits of a 12 diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/livewindow/LiveWindow.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/livewindow/LiveWindow.java index a47f866992..ac8ef1d356 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/livewindow/LiveWindow.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/livewindow/LiveWindow.java @@ -86,7 +86,7 @@ public final class LiveWindow { * enable all the components registered for LiveWindow. If it's being disabled, stop all the * registered components and re-enable the scheduler. * - *

TODO: add code to disable PID loops when enabling LiveWindow. The commands should reenable + *

TODO: add code to disable PID loops when enabling LiveWindow. The commands should re-enable * the PID loops themselves when they get rescheduled. This prevents arms from starting to move * around, etc. after a period of adjusting them in LiveWindow mode. * diff --git a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/commands/commands.json b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/commands/commands.json index f6f2c374a9..d8d57f7b9c 100644 --- a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/commands/commands.json +++ b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/commands/commands.json @@ -131,7 +131,7 @@ }, { "name": "TrapezoidProfileSubsystem", - "description": "A subystem that executes a trapezoidal motion profile.", + "description": "A subsystem that executes a trapezoidal motion profile.", "tags": [ "trapezoidprofilesubsystem" ], diff --git a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/apriltagsvision/Robot.java b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/apriltagsvision/Robot.java index 1334d14deb..a73ea0beb5 100644 --- a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/apriltagsvision/Robot.java +++ b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/apriltagsvision/Robot.java @@ -124,7 +124,7 @@ public class Robot extends TimedRobot { // determine pose Transform3d pose = estimator.estimate(detection); - // put pose into dashbaord + // put pose into dashboard Rotation3d rot = pose.getRotation(); tagsTable .getEntry("pose_" + detection.getId()) diff --git a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/mecanumcontrollercommand/RobotContainer.java b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/mecanumcontrollercommand/RobotContainer.java index bab80b6747..74c088fba4 100644 --- a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/mecanumcontrollercommand/RobotContainer.java +++ b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/mecanumcontrollercommand/RobotContainer.java @@ -103,7 +103,7 @@ public class RobotContainer { DriveConstants.kFeedforward, DriveConstants.kDriveKinematics, - // Position contollers + // Position controllers new PIDController(AutoConstants.kPXController, 0, 0), new PIDController(AutoConstants.kPYController, 0, 0), new ProfiledPIDController( diff --git a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/romireference/RobotContainer.java b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/romireference/RobotContainer.java index a9dcacd426..158255537d 100644 --- a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/romireference/RobotContainer.java +++ b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/romireference/RobotContainer.java @@ -30,7 +30,7 @@ public class RobotContainer { private final Drivetrain m_drivetrain = new Drivetrain(); private final OnBoardIO m_onboardIO = new OnBoardIO(ChannelMode.INPUT, ChannelMode.INPUT); - // Assumes a gamepad plugged into channnel 0 + // Assumes a gamepad plugged into channel 0 private final Joystick m_controller = new Joystick(0); // Create SmartDashboard chooser for autonomous routines diff --git a/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/fixtures/SampleFixture.java b/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/fixtures/SampleFixture.java index 38ea638dd8..29fc4daaa2 100644 --- a/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/fixtures/SampleFixture.java +++ b/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/fixtures/SampleFixture.java @@ -13,8 +13,8 @@ public class SampleFixture implements ITestFixture { public void setup() { /* * If this fixture actually accessed the hardware, here is where it would - * set up the starting state of the test bench. For example, reseting - * encoders, ensuring motors are stopped, reseting any serial communication + * set up the starting state of the test bench. For example, resetting + * encoders, ensuring motors are stopped, resetting any serial communication * if necessary, etc. */ } diff --git a/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/mockhardware/FakeCounterSource.java b/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/mockhardware/FakeCounterSource.java index ac1094ca00..5e0e02efda 100644 --- a/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/mockhardware/FakeCounterSource.java +++ b/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/mockhardware/FakeCounterSource.java @@ -72,7 +72,7 @@ public class FakeCounterSource implements AutoCloseable { } } - /** Common initailization code. */ + /** Common initialization code. */ private void initEncoder() { m_milliSec = 1; m_task = new EncoderThread(this); @@ -95,7 +95,7 @@ public class FakeCounterSource implements AutoCloseable { Timer.delay(0.01); } - /** Starts and completes a task set - does not return until thred has finished its operations. */ + /** Starts and completes a task set - does not return until thread has finished its operations. */ public void execute() { start(); complete(); diff --git a/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/mockhardware/FakePotentiometerSource.java b/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/mockhardware/FakePotentiometerSource.java index 59cc5c7acd..bddb3d5440 100644 --- a/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/mockhardware/FakePotentiometerSource.java +++ b/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/mockhardware/FakePotentiometerSource.java @@ -75,7 +75,7 @@ public class FakePotentiometerSource implements AutoCloseable { return voltage * (m_potMaxAngle / m_potMaxVoltage); } - /** Frees the resouce. */ + /** Frees the resource. */ @Override public void close() { if (m_initOutput) { diff --git a/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/test/AntJunitLauncher.java b/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/test/AntJunitLauncher.java index 4dfa6e1d4b..07d0af72f3 100644 --- a/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/test/AntJunitLauncher.java +++ b/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/test/AntJunitLauncher.java @@ -60,9 +60,9 @@ public class AntJunitLauncher { FormatterElement.TypeAttribute type = new FormatterElement.TypeAttribute(); type.setValue("xml"); - FormatterElement formater = new FormatterElement(); - formater.setType(type); - task.addFormatter(formater); + FormatterElement formatter = new FormatterElement(); + formatter.setType(type); + task.addFormatter(formatter); // Create the JUnitTest JUnitTest test = new JUnitTest(TestSuite.class.getName()); diff --git a/wpimath/src/main/java/edu/wpi/first/math/Matrix.java b/wpimath/src/main/java/edu/wpi/first/math/Matrix.java index b8e7c28f3d..2c06ff9c56 100644 --- a/wpimath/src/main/java/edu/wpi/first/math/Matrix.java +++ b/wpimath/src/main/java/edu/wpi/first/math/Matrix.java @@ -222,7 +222,7 @@ public class Matrix { * *

ci,j = ai,j*otheri,j * - * @param other The other {@link Matrix} to preform element multiplication on. + * @param other The other {@link Matrix} to perform element multiplication on. * @return The element by element multiplication of "this" and other. */ public final Matrix elementTimes(Matrix other) { diff --git a/wpimath/src/main/java/edu/wpi/first/math/geometry/Twist2d.java b/wpimath/src/main/java/edu/wpi/first/math/geometry/Twist2d.java index be6831eba7..1cfe7af2ad 100644 --- a/wpimath/src/main/java/edu/wpi/first/math/geometry/Twist2d.java +++ b/wpimath/src/main/java/edu/wpi/first/math/geometry/Twist2d.java @@ -8,7 +8,7 @@ import java.util.Objects; /** * A change in distance along a 2D arc since the last pose update. We can use ideas from - * differential calculus to create new Pose2d objects from a Twist2d and vise versa. + * differential calculus to create new Pose2d objects from a Twist2d and vice versa. * *

A Twist can be used to represent a difference between two poses. */ diff --git a/wpimath/src/main/java/edu/wpi/first/math/geometry/Twist3d.java b/wpimath/src/main/java/edu/wpi/first/math/geometry/Twist3d.java index b78505e3f1..454716711a 100644 --- a/wpimath/src/main/java/edu/wpi/first/math/geometry/Twist3d.java +++ b/wpimath/src/main/java/edu/wpi/first/math/geometry/Twist3d.java @@ -8,7 +8,7 @@ import java.util.Objects; /** * A change in distance along a 3D arc since the last pose update. We can use ideas from - * differential calculus to create new Pose3d objects from a Twist3d and vise versa. + * differential calculus to create new Pose3d objects from a Twist3d and vice versa. * *

A Twist can be used to represent a difference between two poses. */ diff --git a/wpimath/src/main/java/edu/wpi/first/math/spline/SplineParameterizer.java b/wpimath/src/main/java/edu/wpi/first/math/spline/SplineParameterizer.java index c1a87f2ab0..b2a34a5db5 100644 --- a/wpimath/src/main/java/edu/wpi/first/math/spline/SplineParameterizer.java +++ b/wpimath/src/main/java/edu/wpi/first/math/spline/SplineParameterizer.java @@ -71,8 +71,8 @@ public final class SplineParameterizer { private SplineParameterizer() {} /** - * Parameterizes the spline. This method breaks up the spline into various arcs until their dx, - * dy, and dtheta are within specific tolerances. + * Parametrizes the spline. This method breaks up the spline into various arcs until their dx, dy, + * and dtheta are within specific tolerances. * * @param spline The spline to parameterize. * @return A list of poses and curvatures that represents various points on the spline. @@ -84,8 +84,8 @@ public final class SplineParameterizer { } /** - * Parameterizes the spline. This method breaks up the spline into various arcs until their dx, - * dy, and dtheta are within specific tolerances. + * Parametrizes the spline. This method breaks up the spline into various arcs until their dx, dy, + * and dtheta are within specific tolerances. * * @param spline The spline to parameterize. * @param t0 Starting internal spline parameter. It is recommended to use 0.0. diff --git a/wpimath/src/main/native/include/frc/estimator/SwerveDrivePoseEstimator.h b/wpimath/src/main/native/include/frc/estimator/SwerveDrivePoseEstimator.h index b819c93110..ba29a2b63d 100644 --- a/wpimath/src/main/native/include/frc/estimator/SwerveDrivePoseEstimator.h +++ b/wpimath/src/main/native/include/frc/estimator/SwerveDrivePoseEstimator.h @@ -314,7 +314,7 @@ class SwerveDrivePoseEstimator { // The current gyroscope angle. Rotation2d gyroAngle; - // The distances traveled and rotations meaured at each module. + // The distances traveled and rotations measured at each module. wpi::array modulePositions; /** diff --git a/wpimath/src/main/native/include/frc/geometry/Twist2d.h b/wpimath/src/main/native/include/frc/geometry/Twist2d.h index 620b6887af..82722f9841 100644 --- a/wpimath/src/main/native/include/frc/geometry/Twist2d.h +++ b/wpimath/src/main/native/include/frc/geometry/Twist2d.h @@ -14,7 +14,7 @@ namespace frc { /** * A change in distance along a 2D arc since the last pose update. We can use * ideas from differential calculus to create new Pose2ds from a Twist2d and - * vise versa. + * vice versa. * * A Twist can be used to represent a difference between two poses. */ diff --git a/wpimath/src/main/native/include/frc/geometry/Twist3d.h b/wpimath/src/main/native/include/frc/geometry/Twist3d.h index 3040ab3ef0..48d3c5d653 100644 --- a/wpimath/src/main/native/include/frc/geometry/Twist3d.h +++ b/wpimath/src/main/native/include/frc/geometry/Twist3d.h @@ -15,7 +15,7 @@ namespace frc { /** * A change in distance along a 3D arc since the last pose update. We can use * ideas from differential calculus to create new Pose3ds from a Twist3d and - * vise versa. + * vice versa. * * A Twist can be used to represent a difference between two poses. */ diff --git a/wpimath/src/main/native/include/frc/spline/SplineParameterizer.h b/wpimath/src/main/native/include/frc/spline/SplineParameterizer.h index 0720cd1c7f..e1d2d5230d 100644 --- a/wpimath/src/main/native/include/frc/spline/SplineParameterizer.h +++ b/wpimath/src/main/native/include/frc/spline/SplineParameterizer.h @@ -56,7 +56,7 @@ class WPILIB_DLLEXPORT SplineParameterizer { }; /** - * Parameterizes the spline. This method breaks up the spline into various + * Parametrizes the spline. This method breaks up the spline into various * arcs until their dx, dy, and dtheta are within specific tolerances. * * @param spline The spline to parameterize. diff --git a/wpimath/src/main/native/include/units/base.h b/wpimath/src/main/native/include/units/base.h index 9d021b16f6..f73486d333 100644 --- a/wpimath/src/main/native/include/units/base.h +++ b/wpimath/src/main/native/include/units/base.h @@ -1394,7 +1394,7 @@ namespace units * error. This value should be chosen to be as high as possible before * integer overflow errors occur in the compiler. * @note USE WITH CAUTION. The is an approximate value. In general, squared> != meter, - * i.e. the operation is not reversible, and it will result in propogated approximations. + * i.e. the operation is not reversible, and it will result in propagated approximations. * Use only when absolutely necessary. */ template @@ -1758,7 +1758,7 @@ namespace units #ifdef FOR_DOXYGEN_PURPOSOES_ONLY /** * @ingroup TypeTraits - * @brief Trait for accessing the publically defined types of `units::unit_t` + * @brief Trait for accessing the publicly defined types of `units::unit_t` * @details The units library determines certain properties of the unit_t types passed to them * and what they represent by using the members of the corresponding unit_t_traits instantiation. */ @@ -1788,7 +1788,7 @@ namespace units /** * @ingroup TypeTraits - * @brief Trait for accessing the publically defined types of `units::unit_t` + * @brief Trait for accessing the publicly defined types of `units::unit_t` * @details */ template @@ -2972,7 +2972,7 @@ namespace units { #ifdef FOR_DOXYGEN_PURPOSES_ONLY /** * @ingroup TypeTraits - * @brief Trait for accessing the publically defined types of `units::unit_value_t_traits` + * @brief Trait for accessing the publicly defined types of `units::unit_value_t_traits` * @details The units library determines certain properties of the `unit_value_t` types passed to * them and what they represent by using the members of the corresponding `unit_value_t_traits` * instantiation. @@ -2999,7 +2999,7 @@ namespace units { /** * @ingroup TypeTraits - * @brief Trait for accessing the publically defined types of `units::unit_value_t_traits` + * @brief Trait for accessing the publicly defined types of `units::unit_value_t_traits` * @details */ template diff --git a/wpimath/src/test/native/cpp/estimator/DifferentialDrivePoseEstimatorTest.cpp b/wpimath/src/test/native/cpp/estimator/DifferentialDrivePoseEstimatorTest.cpp index 1e79b0b6e8..3685581f74 100644 --- a/wpimath/src/test/native/cpp/estimator/DifferentialDrivePoseEstimatorTest.cpp +++ b/wpimath/src/test/native/cpp/estimator/DifferentialDrivePoseEstimatorTest.cpp @@ -271,7 +271,7 @@ TEST(DifferentialDrivePoseEstimatorTest, TestDiscardStaleVisionMeasurements) { kinematics, frc::Rotation2d{}, 0_m, 0_m, frc::Pose2d{}, {0.1, 0.1, 0.1}, {0.45, 0.45, 0.45}}; - // Add enough measurements to fill up the bufer + // Add enough measurements to fill up the buffer for (auto time = 0.0_s; time < 4_s; time += 0.02_s) { estimator.UpdateWithTime(time, frc::Rotation2d{}, 0_m, 0_m); } diff --git a/wpimath/src/test/native/cpp/estimator/MecanumDrivePoseEstimatorTest.cpp b/wpimath/src/test/native/cpp/estimator/MecanumDrivePoseEstimatorTest.cpp index acb32c187b..49c534473c 100644 --- a/wpimath/src/test/native/cpp/estimator/MecanumDrivePoseEstimatorTest.cpp +++ b/wpimath/src/test/native/cpp/estimator/MecanumDrivePoseEstimatorTest.cpp @@ -272,7 +272,7 @@ TEST(MecanumDrivePoseEstimatorTest, TestDiscardStaleVisionMeasurements) { kinematics, frc::Rotation2d{}, frc::MecanumDriveWheelPositions{}, frc::Pose2d{}, {0.1, 0.1, 0.1}, {0.45, 0.45, 0.45}}; - // Add enough measurements to fill up the bufer + // Add enough measurements to fill up the buffer for (auto time = 0.0_s; time < 4_s; time += 0.02_s) { estimator.UpdateWithTime(time, frc::Rotation2d{}, frc::MecanumDriveWheelPositions{}); diff --git a/wpimath/src/test/native/cpp/estimator/SwerveDrivePoseEstimatorTest.cpp b/wpimath/src/test/native/cpp/estimator/SwerveDrivePoseEstimatorTest.cpp index a4388f3e25..275a0f0f67 100644 --- a/wpimath/src/test/native/cpp/estimator/SwerveDrivePoseEstimatorTest.cpp +++ b/wpimath/src/test/native/cpp/estimator/SwerveDrivePoseEstimatorTest.cpp @@ -290,7 +290,7 @@ TEST(SwerveDrivePoseEstimatorTest, TestDiscardStaleVisionMeasurements) { kinematics, frc::Rotation2d{}, {fl, fr, bl, br}, frc::Pose2d{}, {0.1, 0.1, 0.1}, {0.45, 0.45, 0.45}}; - // Add enough measurements to fill up the bufer + // Add enough measurements to fill up the buffer for (auto time = 0.0_s; time < 4_s; time += 0.02_s) { estimator.UpdateWithTime(time, frc::Rotation2d{}, {fl, fr, bl, br}); } diff --git a/wpinet/src/main/native/cpp/http_parser.cpp b/wpinet/src/main/native/cpp/http_parser.cpp index 2bec4a74b8..66fff6a2d1 100644 --- a/wpinet/src/main/native/cpp/http_parser.cpp +++ b/wpinet/src/main/native/cpp/http_parser.cpp @@ -1859,7 +1859,7 @@ reexecute: && parser->content_length != ULLONG_MAX); /* The difference between advancing content_length and p is because - * the latter will automaticaly advance on the next loop iteration. + * the latter will automatically advance on the next loop iteration. * Further, if content_length ends up at 0, we want to see the last * byte again for our message complete callback. */ @@ -2347,7 +2347,7 @@ http_parser_parse_url(const char *buf, size_t buflen, int is_connect, case s_dead: return 1; - /* Skip delimeters */ + /* Skip delimiters */ case s_req_schema_slash: case s_req_schema_slash_slash: case s_req_server_start: diff --git a/wpinet/src/main/native/include/wpinet/http_parser.h b/wpinet/src/main/native/include/wpinet/http_parser.h index 2189b8fbd9..3993a4fc27 100644 --- a/wpinet/src/main/native/include/wpinet/http_parser.h +++ b/wpinet/src/main/native/include/wpinet/http_parser.h @@ -36,7 +36,7 @@ # define HTTP_PARSER_STRICT 1 #endif -/* Maximium header size allowed. If the macro is not defined +/* Maximum header size allowed. If the macro is not defined * before including this header then the default is used. To * change the maximum header size, define the macro in the build * environment (e.g. -DHTTP_MAX_HEADER_SIZE=). To remove diff --git a/wpinet/src/main/native/include/wpinet/uv/Idle.h b/wpinet/src/main/native/include/wpinet/uv/Idle.h index 4ed6d07eb9..5cb46255be 100644 --- a/wpinet/src/main/native/include/wpinet/uv/Idle.h +++ b/wpinet/src/main/native/include/wpinet/uv/Idle.h @@ -28,7 +28,7 @@ class Loop; * for I/O. * * @warning Despite the name, idle handles will signal every loop iteration, - * not when the loop is actually "idle". This also means they can easly become + * not when the loop is actually "idle". This also means they can easily become * CPU hogs. */ class Idle final : public HandleImpl { diff --git a/wpiutil/src/test/native/cpp/json/unit-unicode.cpp b/wpiutil/src/test/native/cpp/json/unit-unicode.cpp index 6755fe2978..e9dc71861e 100644 --- a/wpiutil/src/test/native/cpp/json/unit-unicode.cpp +++ b/wpiutil/src/test/native/cpp/json/unit-unicode.cpp @@ -1028,7 +1028,7 @@ TEST(JsonUnicodeTest, ReadAllUnicode) json j; CHECK_NOTHROW(f >> j); - // the array has 1112064 + 1 elemnts (a terminating "null" value) + // the array has 1112064 + 1 elements (a terminating "null" value) // Note: 1112064 = 0x1FFFFF code points - 2048 invalid values between // 0xD800 and 0xDFFF. CHECK(j.size() == 1112065); diff --git a/wpiutil/src/test/native/cpp/priority_mutex_test.cpp b/wpiutil/src/test/native/cpp/priority_mutex_test.cpp index 832e8f3fbb..4eef68be4a 100644 --- a/wpiutil/src/test/native/cpp/priority_mutex_test.cpp +++ b/wpiutil/src/test/native/cpp/priority_mutex_test.cpp @@ -157,7 +157,7 @@ class HighPriorityThread { // // To run the test, we need 3 threads, and then 1 thread to kick the test off. // The threads must all run on the same core, otherwise they wouldn't starve -// eachother. The threads and their roles are as follows: +// each other. The threads and their roles are as follows: // // Low priority thread: // Holds a lock that the high priority thread needs, and releases it upon