diff --git a/hal/src/main/native/include/hal/AnalogGyro.h b/hal/src/main/native/include/hal/AnalogGyro.h index 6e5a9c24d6..ed7c3085dc 100644 --- a/hal/src/main/native/include/hal/AnalogGyro.h +++ b/hal/src/main/native/include/hal/AnalogGyro.h @@ -22,7 +22,7 @@ extern "C" { * Initializes an analog gyro. * * @param[in] handle handle to the analog port - * @param[in] allocationLocation the location where the allocation is occuring + * @param[in] allocationLocation the location where the allocation is occurring * (can be null) * @param[out] status the error code, or 0 for success * @return the initialized gyro handle diff --git a/hal/src/main/native/include/hal/AnalogInput.h b/hal/src/main/native/include/hal/AnalogInput.h index fd591fed41..0a1a3c5851 100644 --- a/hal/src/main/native/include/hal/AnalogInput.h +++ b/hal/src/main/native/include/hal/AnalogInput.h @@ -22,7 +22,7 @@ extern "C" { * Initializes the analog input port using the given port object. * * @param[in] portHandle Handle to the port to initialize. - * @param[in] allocationLocation the location where the allocation is occuring + * @param[in] allocationLocation the location where the allocation is occurring * (can be null) * @param[out] status the error code, or 0 for success * @return the created analog input handle diff --git a/hal/src/main/native/include/hal/AnalogOutput.h b/hal/src/main/native/include/hal/AnalogOutput.h index e6a5efc904..f9a1f3655e 100644 --- a/hal/src/main/native/include/hal/AnalogOutput.h +++ b/hal/src/main/native/include/hal/AnalogOutput.h @@ -22,7 +22,7 @@ extern "C" { * Initializes the analog output port using the given port object. * * @param[in] portHandle handle to the port - * @param[in] allocationLocation the location where the allocation is occuring + * @param[in] allocationLocation the location where the allocation is occurring * (can be null) * @param[out] status Error status variable. 0 on success. * @return the created analog output handle diff --git a/hal/src/main/native/include/hal/DIO.h b/hal/src/main/native/include/hal/DIO.h index ab53321177..6b922b5ff4 100644 --- a/hal/src/main/native/include/hal/DIO.h +++ b/hal/src/main/native/include/hal/DIO.h @@ -23,7 +23,7 @@ extern "C" { * * @param[in] portHandle the port handle to create from * @param[in] input true for input, false for output - * @param[in] allocationLocation the location where the allocation is occuring + * @param[in] allocationLocation the location where the allocation is occurring * (can be null) * @param[out] status Error status variable. 0 on success. * @return the created digital handle diff --git a/hal/src/main/native/include/hal/PWM.h b/hal/src/main/native/include/hal/PWM.h index 7fd125e801..df9020bcf5 100644 --- a/hal/src/main/native/include/hal/PWM.h +++ b/hal/src/main/native/include/hal/PWM.h @@ -22,7 +22,7 @@ extern "C" { * Initializes a PWM port. * * @param[in] portHandle the port to initialize - * @param[in] allocationLocation the location where the allocation is occuring + * @param[in] allocationLocation the location where the allocation is occurring * (can be null) * @param[out] status Error status variable. 0 on success. * @return the created pwm handle diff --git a/hal/src/main/native/include/hal/PowerDistribution.h b/hal/src/main/native/include/hal/PowerDistribution.h index 47cc9b2c34..7c2b582a1a 100644 --- a/hal/src/main/native/include/hal/PowerDistribution.h +++ b/hal/src/main/native/include/hal/PowerDistribution.h @@ -37,7 +37,7 @@ extern "C" { * * @param[in] moduleNumber the module number to initialize * @param[in] type the type of module to intialize - * @param[in] allocationLocation the location where the allocation is occuring + * @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/Relay.h b/hal/src/main/native/include/hal/Relay.h index 7d711b2421..9ee104b6a8 100644 --- a/hal/src/main/native/include/hal/Relay.h +++ b/hal/src/main/native/include/hal/Relay.h @@ -27,7 +27,7 @@ extern "C" { * @param[in] portHandle the port handle to initialize * @param[in] fwd true for the forward port, false for the * reverse port - * @param[in] allocationLocation the location where the allocation is occuring + * @param[in] allocationLocation the location where the allocation is occurring * (can be null) * @param[out] status Error status variable. 0 on success. * @return the created relay handle diff --git a/ntcore/src/main/java/edu/wpi/first/networktables/PubSubOption.java b/ntcore/src/main/java/edu/wpi/first/networktables/PubSubOption.java index 340418c094..429648e7ea 100644 --- a/ntcore/src/main/java/edu/wpi/first/networktables/PubSubOption.java +++ b/ntcore/src/main/java/edu/wpi/first/networktables/PubSubOption.java @@ -107,7 +107,7 @@ public class PubSubOption { /** * For subscriptions, specify whether local value updates should not be queued for readQueue(). - * See alse disableRemote(). Defaults to false (local value updates are queued). + * See also disableRemote(). Defaults to false (local value updates are queued). * * @param disabled True to disable, false to enable * @return option diff --git a/styleguide/checkstyle.xml b/styleguide/checkstyle.xml index db0f60693a..09e9f23dee 100644 --- a/styleguide/checkstyle.xml +++ b/styleguide/checkstyle.xml @@ -109,7 +109,7 @@ module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" COMPACT_CTOR_DEF" /> - + ReadAutoReceivedData(trashBuffer, std::min(data_count, 200), 0_s); - /*Get the reamining data count */ + /*Get the remaining data count */ data_count = m_spi->ReadAutoReceivedData(trashBuffer, 0, 0_s); } } @@ -485,7 +485,7 @@ ADIS16470_IMU::~ADIS16470_IMU() { * @brief Main acquisition loop. Typically called asynchronously and free-wheels *while the robot code is active. * - * This is the main acquisiton loop for the IMU. During each iteration, data + * This is the main acquisition loop for the IMU. During each iteration, data *read using auto SPI is extracted from the FPGA FIFO, split, scaled, and *integrated. Each X, Y, and Z value is 32-bits split across 4 indices (bytes) *in the buffer. Auto SPI puts one byte in each index location. Each index is diff --git a/wpilibc/src/main/native/include/frc/ADIS16470_IMU.h b/wpilibc/src/main/native/include/frc/ADIS16470_IMU.h index d7e71adb0e..4619819a2b 100644 --- a/wpilibc/src/main/native/include/frc/ADIS16470_IMU.h +++ b/wpilibc/src/main/native/include/frc/ADIS16470_IMU.h @@ -93,7 +93,8 @@ class ADIS16470_IMU : public nt::NTSendable, CalibrationTime cal_time); /** - * @brief Destructor. Kills the acquisiton loop and closes the SPI peripheral. + * @brief Destructor. Kills the acquisition loop and closes the SPI + * peripheral. */ ~ADIS16470_IMU() override; diff --git a/wpilibc/src/main/native/include/frc/AsynchronousInterrupt.h b/wpilibc/src/main/native/include/frc/AsynchronousInterrupt.h index 4531dfdba2..0dea5bc8e7 100644 --- a/wpilibc/src/main/native/include/frc/AsynchronousInterrupt.h +++ b/wpilibc/src/main/native/include/frc/AsynchronousInterrupt.h @@ -82,7 +82,8 @@ class AsynchronousInterrupt { * @param source the DigitalSource the interrupts are triggered from * @param f the callback function to call when the interrupt is triggered * @param arg the first argument, interrupt was triggered on rising edge - * @param args the remaing arguments, interrupt was triggered on falling edge + * @param args the remaining arguments, interrupt was triggered on falling + * edge */ template AsynchronousInterrupt(DigitalSource& source, Callable&& f, Arg&& arg, @@ -99,7 +100,8 @@ class AsynchronousInterrupt { * @param source the DigitalSource the interrupts are triggered from * @param f the callback function to call when the interrupt is triggered * @param arg the first argument, interrupt was triggered on rising edge - * @param args the remaing arguments, interrupt was triggered on falling edge + * @param args the remaining arguments, interrupt was triggered on falling + * edge */ template AsynchronousInterrupt(DigitalSource* source, Callable&& f, Arg&& arg, @@ -116,7 +118,8 @@ class AsynchronousInterrupt { * @param source the DigitalSource the interrupts are triggered from * @param f the callback function to call when the interrupt is triggered * @param arg the first argument, interrupt was triggered on rising edge - * @param args the remaing arguments, interrupt was triggered on falling edge + * @param args the remaining arguments, interrupt was triggered on falling + * edge */ template AsynchronousInterrupt(std::shared_ptr source, Callable&& f, diff --git a/wpilibc/src/main/native/include/frc/SynchronousInterrupt.h b/wpilibc/src/main/native/include/frc/SynchronousInterrupt.h index 575cf3e503..fbe0fca680 100644 --- a/wpilibc/src/main/native/include/frc/SynchronousInterrupt.h +++ b/wpilibc/src/main/native/include/frc/SynchronousInterrupt.h @@ -65,7 +65,7 @@ class SynchronousInterrupt { * * @param timeout The timeout to wait for. 0s or less will return immediately. * @param ignorePrevious True to ignore any previous interrupts, false to - * return interrupt value if an interrupt has occured since last call. + * return interrupt value if an interrupt has occurred since last call. * @return The edge(s) that were triggered, or timeout. */ WaitResult WaitForInterrupt(units::second_t timeout, diff --git a/wpilibc/src/main/native/include/frc/util/Color.h b/wpilibc/src/main/native/include/frc/util/Color.h index 52be29aa3e..87d8c12f49 100644 --- a/wpilibc/src/main/native/include/frc/util/Color.h +++ b/wpilibc/src/main/native/include/frc/util/Color.h @@ -783,7 +783,7 @@ class Color { // Difference between highest and lowest value of any rgb component int chroma = (s * v) >> 8; - // Beacuse hue is 0-180 rather than 0-360 use 30 not 60 + // Because hue is 0-180 rather than 0-360 use 30 not 60 int region = (h / 30) % 6; // Remainder converted from 0-30 to 0-255 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 41cc1dc687..eb269f459c 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 @@ -491,12 +491,12 @@ public class ADIS16448_IMU implements AutoCloseable, NTSendable { /* Check max */ if (m_decRate > 9) { DriverStation.reportError( - "Attemted to write an invalid decimation value. Capping at 9", false); + "Attempted to write an invalid decimation value. Capping at 9", false); m_decRate = 9; } if (m_decRate < 0) { DriverStation.reportError( - "Attemted to write an invalid decimation value. Capping at 0", false); + "Attempted to write an invalid decimation value. Capping at 0", false); m_decRate = 0; } @@ -550,7 +550,7 @@ public class ADIS16448_IMU implements AutoCloseable, NTSendable { m_offset_data_gyro_rate_x = new double[size]; m_offset_data_gyro_rate_y = new double[size]; m_offset_data_gyro_rate_z = new double[size]; - // Set acculumate count to 0 + // Set accumulate count to 0 m_accum_count = 0; } } 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 ed7503ff37..316783a107 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 @@ -565,7 +565,7 @@ public class ADIS16470_IMU implements AutoCloseable, NTSendable { return 2; } if (m_reg > 1999) { - DriverStation.reportError("Attemted to write an invalid deimation value.", false); + DriverStation.reportError("Attempted to write an invalid deimation value.", false); m_reg = 1999; } m_scaled_sample_rate = (((m_reg + 1.0) / 2000.0) * 1000000.0); diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/AddressableLEDBuffer.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/AddressableLEDBuffer.java index 4a1a593c0b..a19773e1f8 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/AddressableLEDBuffer.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/AddressableLEDBuffer.java @@ -61,7 +61,7 @@ public class AddressableLEDBuffer { // Difference between highest and lowest value of any rgb component final int chroma = (s * v) / 255; - // Beacuse hue is 0-180 rather than 0-360 use 30 not 60 + // Because hue is 0-180 rather than 0-360 use 30 not 60 final int region = (h / 30) % 6; // Remainder converted from 0-30 to 0-255 diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/util/Color.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/util/Color.java index fb4685d238..2defbd8ad3 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/util/Color.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/util/Color.java @@ -87,7 +87,7 @@ public class Color { // Difference between highest and lowest value of any rgb component final int chroma = (s * v) / 255; - // Beacuse hue is 0-180 rather than 0-360 use 30 not 60 + // Because hue is 0-180 rather than 0-360 use 30 not 60 final int region = (h / 30) % 6; // Remainder converted from 0-30 to 0-255 diff --git a/wpimath/src/main/native/include/units/base.h b/wpimath/src/main/native/include/units/base.h index 59787de126..9d021b16f6 100644 --- a/wpimath/src/main/native/include/units/base.h +++ b/wpimath/src/main/native/include/units/base.h @@ -869,7 +869,7 @@ namespace units * - A `std::ratio` defining the conversion factor to the base unit type. (e.g. `std::ratio<1,12>` for inches to feet) * - A base unit that the unit is derived from (or a unit category. Must be of type `unit` or `base_unit`) * - An exponent representing factors of PI required by the conversion. (e.g. `std::ratio<-1>` for a radians to degrees conversion) - * - a ratio representing a datum translation required for the conversion (e.g. `std::ratio<32>` for a farenheit to celsius conversion) + * - a ratio representing a datum translation required for the conversion (e.g. `std::ratio<32>` for a fahrenheit to celsius conversion) * * Typically, a specific unit, like `meters`, would be implemented as a type alias * of `unit`, i.e. `using meters = unit, units::category::length_unit`, or