diff --git a/README-CMAKE.md b/README-CMAKE.md index 52edec0979..ddca7ae3dd 100644 --- a/README-CMAKE.md +++ b/README-CMAKE.md @@ -81,7 +81,7 @@ project(vision_app) # Project Name Here find_package(wpilib REQUIRED) -add_executable(my_vision_app main.cpp) # exectuable name as first parameter +add_executable(my_vision_app main.cpp) # executable name as first parameter target_link_libraries(my_vision_app cameraserver ntcore cscore wpiutil) ``` diff --git a/cscore/src/main/native/include/cscore_c.h b/cscore/src/main/native/include/cscore_c.h index 728028cb92..ee5d33a03d 100644 --- a/cscore/src/main/native/include/cscore_c.h +++ b/cscore/src/main/native/include/cscore_c.h @@ -228,7 +228,7 @@ struct CS_Event { }; /** - * USB camera infomation + * USB camera information */ typedef struct CS_UsbCameraInfo { int dev; diff --git a/hal/src/main/java/edu/wpi/first/hal/util/HalHandleException.java b/hal/src/main/java/edu/wpi/first/hal/util/HalHandleException.java index 2a7dc9caf5..a775ec417f 100644 --- a/hal/src/main/java/edu/wpi/first/hal/util/HalHandleException.java +++ b/hal/src/main/java/edu/wpi/first/hal/util/HalHandleException.java @@ -8,7 +8,7 @@ package edu.wpi.first.hal.util; /** - * Exception indicating that an error has occured with a HAL Handle. + * Exception indicating that an error has occurred with a HAL Handle. */ @SuppressWarnings("serial") public class HalHandleException extends RuntimeException { diff --git a/hal/src/main/native/athena/Accelerometer.cpp b/hal/src/main/native/athena/Accelerometer.cpp index f83c06e464..bc4d502f67 100644 --- a/hal/src/main/native/athena/Accelerometer.cpp +++ b/hal/src/main/native/athena/Accelerometer.cpp @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */ +/* Copyright (c) 2016-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -176,7 +176,7 @@ static uint8_t readRegister(Register reg) { * 1 g-force, taking into account the accelerometer range. */ static double unpackAxis(int16_t raw) { - // The raw value is actually 12 bits, not 16, so we need to propogate the + // The raw value is actually 12 bits, not 16, so we need to propagate the // 2's complement sign bit to the unused 4 bits for this to work with // negative numbers. raw <<= 4; diff --git a/hal/src/main/native/athena/AnalogInternal.cpp b/hal/src/main/native/athena/AnalogInternal.cpp index 03a246d15b..6ac16b88c0 100644 --- a/hal/src/main/native/athena/AnalogInternal.cpp +++ b/hal/src/main/native/athena/AnalogInternal.cpp @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2016-2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2016-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -93,7 +93,7 @@ void setAnalogSampleRate(double samplesPerSecond, int32_t* status) { config.ConvertRate = ticksPerConversion; analogInputSystem->writeConfig(config, status); - // Indicate that the scan size has been commited to hardware. + // Indicate that the scan size has been committed to hardware. setAnalogNumChannelsToActivate(0); } diff --git a/hal/src/main/native/athena/HAL.cpp b/hal/src/main/native/athena/HAL.cpp index d548a43892..ac3b444276 100644 --- a/hal/src/main/native/athena/HAL.cpp +++ b/hal/src/main/native/athena/HAL.cpp @@ -334,7 +334,7 @@ static bool killExistingProgram(int timeout, int mode) { kill(pid, SIGTERM); // try to kill it std::this_thread::sleep_for(std::chrono::milliseconds(timeout)); if (kill(pid, 0) == 0) { - // still not successfull + // still not successful wpi::outs() << "FRC pid " << pid << " did not die within " << timeout << "ms. Force killing with kill -9\n"; // Force kill -9 diff --git a/hal/src/main/native/athena/Relay.cpp b/hal/src/main/native/athena/Relay.cpp index 71880a8d21..4dffa36805 100644 --- a/hal/src/main/native/athena/Relay.cpp +++ b/hal/src/main/native/athena/Relay.cpp @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2016-2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2016-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -88,8 +88,8 @@ void HAL_FreeRelayPort(HAL_RelayHandle relayPortHandle) { HAL_Bool HAL_CheckRelayChannel(int32_t channel) { // roboRIO only has 4 headers, and the FPGA has - // seperate functions for forward and reverse, - // instead of seperate channel IDs + // separate functions for forward and reverse, + // instead of separate channel IDs return channel < kNumRelayHeaders && channel >= 0; } diff --git a/hal/src/main/native/athena/cpp/SerialHelper.cpp b/hal/src/main/native/athena/cpp/SerialHelper.cpp index e312e2afd7..2156147b8d 100644 --- a/hal/src/main/native/athena/cpp/SerialHelper.cpp +++ b/hal/src/main/native/athena/cpp/SerialHelper.cpp @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2016-2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2016-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -199,7 +199,7 @@ void SerialHelper::QueryHubPaths(int32_t* status) { *status = viGetAttribute(vSession, VI_ATTR_INTF_INST_NAME, &osName); // Ignore an error here, as we want to close the session on an error - // Use a seperate close variable so we can check + // Use a separate close variable so we can check ViStatus closeStatus = viClose(vSession); if (*status < 0) goto done; if (closeStatus < 0) goto done; diff --git a/hal/src/main/native/athena/ctre/PCM.h b/hal/src/main/native/athena/ctre/PCM.h index b485219a2d..4923202918 100644 --- a/hal/src/main/native/athena/ctre/PCM.h +++ b/hal/src/main/native/athena/ctre/PCM.h @@ -57,7 +57,7 @@ public: /* Get compressor state * @Return - CTR_Code - Error code (if any) - * @Param - status - True if compress ouput is on, false if otherwise + * @Param - status - True if compress output is on, false if otherwise */ CTR_Code GetCompressor(bool &status); diff --git a/hal/src/main/native/include/hal/handles/DigitalHandleResource.h b/hal/src/main/native/include/hal/handles/DigitalHandleResource.h index 3372fe5a27..5fd8506162 100644 --- a/hal/src/main/native/include/hal/handles/DigitalHandleResource.h +++ b/hal/src/main/native/include/hal/handles/DigitalHandleResource.h @@ -23,7 +23,7 @@ namespace hal { /** * The DigitalHandleResource class is a way to track handles. This version * allows a limited number of handles that are allocated by index. - * The enum value is seperate, as 2 enum values are allowed per handle + * The enum value is separate, as 2 enum values are allowed per handle * Because they are allocated by index, each individual index holds its own * mutex, which reduces contention heavily.] * @@ -57,7 +57,7 @@ class DigitalHandleResource : public HandleBase { template THandle DigitalHandleResource::Allocate( int16_t index, HAL_HandleEnum enumValue, int32_t* status) { - // don't aquire the lock if we can fail early. + // don't acquire the lock if we can fail early. if (index < 0 || index >= size) { *status = RESOURCE_OUT_OF_RANGE; return HAL_kInvalidHandle; @@ -81,7 +81,7 @@ std::shared_ptr DigitalHandleResource::Get( return nullptr; } std::scoped_lock lock(m_handleMutexes[index]); - // return structure. Null will propogate correctly, so no need to manually + // return structure. Null will propagate correctly, so no need to manually // check. return m_structures[index]; } diff --git a/hal/src/main/native/include/hal/handles/IndexedClassedHandleResource.h b/hal/src/main/native/include/hal/handles/IndexedClassedHandleResource.h index 7bb0f6b471..902f02341b 100644 --- a/hal/src/main/native/include/hal/handles/IndexedClassedHandleResource.h +++ b/hal/src/main/native/include/hal/handles/IndexedClassedHandleResource.h @@ -64,7 +64,7 @@ template ::Allocate( int16_t index, std::shared_ptr toSet, int32_t* status) { - // don't aquire the lock if we can fail early. + // don't acquire the lock if we can fail early. if (index < 0 || index >= size) { *status = RESOURCE_OUT_OF_RANGE; return HAL_kInvalidHandle; @@ -90,7 +90,7 @@ IndexedClassedHandleResource::Get( return nullptr; } std::scoped_lock lock(m_handleMutexes[index]); - // return structure. Null will propogate correctly, so no need to manually + // return structure. Null will propagate correctly, so no need to manually // check. return m_structures[index]; } diff --git a/hal/src/main/native/include/hal/handles/IndexedHandleResource.h b/hal/src/main/native/include/hal/handles/IndexedHandleResource.h index 0217e7e036..26fda02f6c 100644 --- a/hal/src/main/native/include/hal/handles/IndexedHandleResource.h +++ b/hal/src/main/native/include/hal/handles/IndexedHandleResource.h @@ -59,7 +59,7 @@ template THandle IndexedHandleResource::Allocate( int16_t index, int32_t* status) { - // don't aquire the lock if we can fail early. + // don't acquire the lock if we can fail early. if (index < 0 || index >= size) { *status = RESOURCE_OUT_OF_RANGE; return HAL_kInvalidHandle; @@ -84,7 +84,7 @@ IndexedHandleResource::Get(THandle handle) { return nullptr; } std::scoped_lock lock(m_handleMutexes[index]); - // return structure. Null will propogate correctly, so no need to manually + // return structure. Null will propagate correctly, so no need to manually // check. return m_structures[index]; } diff --git a/hal/src/main/native/include/hal/handles/LimitedClassedHandleResource.h b/hal/src/main/native/include/hal/handles/LimitedClassedHandleResource.h index 564377a79a..0ab8aac304 100644 --- a/hal/src/main/native/include/hal/handles/LimitedClassedHandleResource.h +++ b/hal/src/main/native/include/hal/handles/LimitedClassedHandleResource.h @@ -85,7 +85,7 @@ LimitedClassedHandleResource::Get( return nullptr; } std::scoped_lock lock(m_handleMutexes[index]); - // return structure. Null will propogate correctly, so no need to manually + // return structure. Null will propagate correctly, so no need to manually // check. return m_structures[index]; } diff --git a/hal/src/main/native/include/hal/handles/LimitedHandleResource.h b/hal/src/main/native/include/hal/handles/LimitedHandleResource.h index 2ae3141e23..2f7ed0d305 100644 --- a/hal/src/main/native/include/hal/handles/LimitedHandleResource.h +++ b/hal/src/main/native/include/hal/handles/LimitedHandleResource.h @@ -80,7 +80,7 @@ LimitedHandleResource::Get(THandle handle) { return nullptr; } std::scoped_lock lock(m_handleMutexes[index]); - // return structure. Null will propogate correctly, so no need to manually + // return structure. Null will propagate correctly, so no need to manually // check. return m_structures[index]; } diff --git a/hal/src/main/native/sim/Relay.cpp b/hal/src/main/native/sim/Relay.cpp index bd1c8a8b94..acecec44fd 100644 --- a/hal/src/main/native/sim/Relay.cpp +++ b/hal/src/main/native/sim/Relay.cpp @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */ +/* Copyright (c) 2016-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -89,8 +89,8 @@ void HAL_FreeRelayPort(HAL_RelayHandle relayPortHandle) { HAL_Bool HAL_CheckRelayChannel(int32_t channel) { // roboRIO only has 4 headers, and the FPGA has - // seperate functions for forward and reverse, - // instead of seperate channel IDs + // separate functions for forward and reverse, + // instead of separate channel IDs return channel < kNumRelayHeaders && channel >= 0; } diff --git a/ntcore/src/main/native/include/networktables/NetworkTable.h b/ntcore/src/main/native/include/networktables/NetworkTable.h index 6504e093bf..3bfadbdd0e 100644 --- a/ntcore/src/main/native/include/networktables/NetworkTable.h +++ b/ntcore/src/main/native/include/networktables/NetworkTable.h @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2015-2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2015-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -176,7 +176,7 @@ class NetworkTable final : public ITable { static void SetTeam(int team); /** - * @param address the adress that network tables will connect to in client + * @param address the address that network tables will connect to in client * mode */ WPI_DEPRECATED( @@ -774,7 +774,7 @@ class NetworkTable final : public ITable { } // namespace nt -// For backwards compatability +// For backwards compatibility #ifndef NAMESPACED_NT using nt::NetworkTable; // NOLINT #endif diff --git a/ntcore/src/main/native/include/ntcore_c.h b/ntcore/src/main/native/include/ntcore_c.h index 1ed40250ee..980752fc51 100644 --- a/ntcore/src/main/native/include/ntcore_c.h +++ b/ntcore/src/main/native/include/ntcore_c.h @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2015-2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2015-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -1747,7 +1747,7 @@ double* NT_GetValueDoubleArray(const struct NT_Value* value, * It is the caller's responsibility to free the array once its no longer * needed. The NT_FreeStringArray() function is useful for this purpose. * The returned array is a copy of the array in the value, and must be - * freed seperately. Note that the individual NT_Strings should not be freed, + * freed separately. Note that the individual NT_Strings should not be freed, * but the entire array should be freed at once. The NT_FreeStringArray() * function will free all the NT_Strings. */ diff --git a/simulation/frc_gazebo_plugins/frc_gazebo_plugins.doxy b/simulation/frc_gazebo_plugins/frc_gazebo_plugins.doxy index 887c9c1535..a2ebdd29d4 100644 --- a/simulation/frc_gazebo_plugins/frc_gazebo_plugins.doxy +++ b/simulation/frc_gazebo_plugins/frc_gazebo_plugins.doxy @@ -1947,7 +1947,7 @@ PREDEFINED = EXPAND_AS_DEFINED = # If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will -# remove all refrences to function-like macros that are alone on a line, have an +# remove all references to function-like macros that are alone on a line, have an # all uppercase name, and do not end with a semicolon. Such function macros are # typically used for boiler-plate code, and will confuse the parser if not # removed. diff --git a/simulation/frc_gazebo_plugins/src/encoder/headers/encoder.h b/simulation/frc_gazebo_plugins/src/encoder/headers/encoder.h index c33f708488..4ecc17a790 100644 --- a/simulation/frc_gazebo_plugins/src/encoder/headers/encoder.h +++ b/simulation/frc_gazebo_plugins/src/encoder/headers/encoder.h @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */ +/* Copyright (c) 2016-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -69,7 +69,7 @@ class Encoder : public gazebo::ModelPlugin { /// \brief Whether or not this encoder measures radians or degrees. bool radians; - /// \brief A factor to mulitply this output by. + /// \brief A factor to multiply this output by. double multiplier; /// \brief Whether or not the encoder has been stopped. diff --git a/simulation/halsim_ws_server/src/test/native/cpp/WebServerClientTest.cpp b/simulation/halsim_ws_server/src/test/native/cpp/WebServerClientTest.cpp index cf0d7e94bc..ff12c99f8e 100644 --- a/simulation/halsim_ws_server/src/test/native/cpp/WebServerClientTest.cpp +++ b/simulation/halsim_ws_server/src/test/native/cpp/WebServerClientTest.cpp @@ -60,7 +60,7 @@ void WebServerClientTest::InitializeWebSocket(const std::string& host, int port, // Save last message received m_json = j; - // If terminate flag set, end loop after message recieved + // If terminate flag set, end loop after message received if (m_terminateFlag) { m_loop->Stop(); } diff --git a/test-scripts/config.sh b/test-scripts/config.sh index be2587ad0b..dce90314bd 100755 --- a/test-scripts/config.sh +++ b/test-scripts/config.sh @@ -7,7 +7,7 @@ #*----------------------------------------------------------------------------*# # If this is changed, update the .gitignore -# so that test results are not commited to the repo +# so that test results are not committed to the repo DEFAULT_LOCAL_TEST_RESULTS_DIR=../test-reports ROBOT_ADDRESS=admin@roboRIO-190-FRC.local diff --git a/test-scripts/deploy-and-run-test-on-robot.sh b/test-scripts/deploy-and-run-test-on-robot.sh index ca5f59fb72..ba67d8ba17 100755 --- a/test-scripts/deploy-and-run-test-on-robot.sh +++ b/test-scripts/deploy-and-run-test-on-robot.sh @@ -22,7 +22,7 @@ A script designed to run the integration tests. This script should only be run on the computer connected to the roboRIO. Where: -h Show this help text. - -A Disable language recomended arguments. + -A Disable language recommended arguments. arg Additional arguments to be passed to test." diff --git a/test-scripts/run-tests-on-robot.sh b/test-scripts/run-tests-on-robot.sh index 96d10c007e..457818cd43 100755 --- a/test-scripts/run-tests-on-robot.sh +++ b/test-scripts/run-tests-on-robot.sh @@ -71,7 +71,7 @@ fi PARAM_COUNTER=1 printf "Param Args ${PARAM_ARGS}\n" -# Check for optional paramaters +# Check for optional parameters while getopts ':hmd:A' option $PARAM_ARGS ; do case "$option" in h) @@ -103,7 +103,7 @@ if [[ "$RUN_WITH_DEFAULT_ARGS" == true ]]; then TEST_RUN_ARGS="${DEFAULT_ARGS} ${TEST_RUN_ARGS}" fi -# Make sure at least two paramaters are passed or four if running with -d option +# Make sure at least two parameters are passed or four if running with -d option if [[ $# -lt $PARAM_COUNTER ]]; then printf "Invalid arg count. Should be %s, was %s.\n" "${PARAM_COUNTER}" "$#" echo "$usage" diff --git a/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/StartEndCommand.java b/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/StartEndCommand.java index 31394655ea..9029135c69 100644 --- a/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/StartEndCommand.java +++ b/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/StartEndCommand.java @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2018-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -12,7 +12,7 @@ import java.util.function.BooleanSupplier; import static edu.wpi.first.wpilibj.util.ErrorMessages.requireNonNullParam; /** - * A command that runs a given runnable when it is initalized, and another runnable when it ends. + * A command that runs a given runnable when it is initialized, and another runnable when it ends. * Useful for running and then stopping a motor, or extending and then retracting a solenoid. * Has no end condition as-is; either subclass it or use {@link Command#withTimeout(double)} or * {@link Command#withInterrupt(BooleanSupplier)} to give it one. diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/StartEndCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/StartEndCommand.h index c0c9096b5e..9b1252e8fd 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/StartEndCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/StartEndCommand.h @@ -17,7 +17,7 @@ namespace frc2 { /** - * A command that runs a given runnable when it is initalized, and another + * A command that runs a given runnable when it is initialized, and another * runnable when it ends. Useful for running and then stopping a motor, or * extending and then retracting a solenoid. Has no end condition as-is; either * subclass it or use Command.WithTimeout() or Command.WithInterrupt() to give diff --git a/wpilibNewCommands/src/test/java/edu/wpi/first/wpilibj2/MockHardwareExtension.java b/wpilibNewCommands/src/test/java/edu/wpi/first/wpilibj2/MockHardwareExtension.java index 37f1e22b86..0547b662e6 100644 --- a/wpilibNewCommands/src/test/java/edu/wpi/first/wpilibj2/MockHardwareExtension.java +++ b/wpilibNewCommands/src/test/java/edu/wpi/first/wpilibj2/MockHardwareExtension.java @@ -21,7 +21,7 @@ public final class MockHardwareExtension implements BeforeAllCallback { @Override public void beforeAll(ExtensionContext context) { - getRoot(context).getStore(Namespace.GLOBAL).getOrComputeIfAbsent("HAL Initalized", key -> { + getRoot(context).getStore(Namespace.GLOBAL).getOrComputeIfAbsent("HAL Initialized", key -> { initializeHardware(); return true; }, Boolean.class); diff --git a/wpilibOldCommands/src/test/java/edu/wpi/first/wpilibj/MockHardwareExtension.java b/wpilibOldCommands/src/test/java/edu/wpi/first/wpilibj/MockHardwareExtension.java index a53f41b276..fe7429b17e 100644 --- a/wpilibOldCommands/src/test/java/edu/wpi/first/wpilibj/MockHardwareExtension.java +++ b/wpilibOldCommands/src/test/java/edu/wpi/first/wpilibj/MockHardwareExtension.java @@ -21,7 +21,7 @@ public final class MockHardwareExtension implements BeforeAllCallback { @Override public void beforeAll(ExtensionContext context) { - getRoot(context).getStore(Namespace.GLOBAL).getOrComputeIfAbsent("HAL Initalized", key -> { + getRoot(context).getStore(Namespace.GLOBAL).getOrComputeIfAbsent("HAL Initialized", key -> { initializeHardware(); return true; }, Boolean.class); diff --git a/wpilibOldCommands/src/test/java/edu/wpi/first/wpilibj/command/CommandSequentialGroupTest.java b/wpilibOldCommands/src/test/java/edu/wpi/first/wpilibj/command/CommandSequentialGroupTest.java index ce920c74ce..cc2b76c0d5 100644 --- a/wpilibOldCommands/src/test/java/edu/wpi/first/wpilibj/command/CommandSequentialGroupTest.java +++ b/wpilibOldCommands/src/test/java/edu/wpi/first/wpilibj/command/CommandSequentialGroupTest.java @@ -23,7 +23,7 @@ class CommandSequentialGroupTest extends AbstractCommandTest { */ @Test public void testThreeCommandOnSubSystem() { - logger.fine("Begining Test"); + logger.fine("Beginning Test"); final ASubsystem subsystem = new ASubsystem(); logger.finest("Creating Mock Command1"); diff --git a/wpilibc/src/main/native/cpp/RobotDrive.cpp b/wpilibc/src/main/native/cpp/RobotDrive.cpp index 5235fa2269..9eafe0c945 100644 --- a/wpilibc/src/main/native/cpp/RobotDrive.cpp +++ b/wpilibc/src/main/native/cpp/RobotDrive.cpp @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2008-2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2008-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -282,7 +282,7 @@ void RobotDrive::MecanumDrive_Cartesian(double x, double y, double rotation, double yIn = y; // Negate y for the joystick. yIn = -yIn; - // Compenstate for gyro angle. + // Compensate for gyro angle. RotateVector(xIn, yIn, gyroAngle); double wheelSpeeds[kMaxNumberOfMotors]; diff --git a/wpilibc/src/main/native/include/frc/AddressableLED.h b/wpilibc/src/main/native/include/frc/AddressableLED.h index 3154f9ef49..3bcbab504c 100644 --- a/wpilibc/src/main/native/include/frc/AddressableLED.h +++ b/wpilibc/src/main/native/include/frc/AddressableLED.h @@ -151,7 +151,7 @@ class AddressableLED : public ErrorBase { /** * Starts the output. * - *

The output writes continously. + *

The output writes continuously. */ void Start(); diff --git a/wpilibc/src/main/native/include/frc/Notifier.h b/wpilibc/src/main/native/include/frc/Notifier.h index 94df7252e9..c9348a6a69 100644 --- a/wpilibc/src/main/native/include/frc/Notifier.h +++ b/wpilibc/src/main/native/include/frc/Notifier.h @@ -135,9 +135,9 @@ class Notifier : public ErrorBase { void StartPeriodic(units::second_t period); /** - * Stop timer events from occuring. + * Stop timer events from occurring. * - * Stop any repeating timer events from occuring. This will also remove any + * Stop any repeating timer events from occurring. This will also remove any * single notification events from the queue. * * If a timer-based call to the registered handler is in progress, this diff --git a/wpilibc/src/main/native/include/frc/PIDController.h b/wpilibc/src/main/native/include/frc/PIDController.h index a01c82d0f8..39e4deb404 100644 --- a/wpilibc/src/main/native/include/frc/PIDController.h +++ b/wpilibc/src/main/native/include/frc/PIDController.h @@ -48,7 +48,7 @@ class PIDController : public PIDBase, public Controller { * @param output The PIDOutput object that is set to the output value * @param period the loop time for doing calculations in seconds. This * particularly affects calculations of the integral and - * differental terms. The default is 0.05 (50ms). + * differential terms. The default is 0.05 (50ms). */ WPI_DEPRECATED("Use frc2::PIDController class instead.") PIDController(double p, double i, double d, PIDSource* source, @@ -64,7 +64,7 @@ class PIDController : public PIDBase, public Controller { * @param output The PIDOutput object that is set to the output value * @param period the loop time for doing calculations in seconds. This * particularly affects calculations of the integral and - * differental terms. The default is 0.05 (50ms). + * differential terms. The default is 0.05 (50ms). */ WPI_DEPRECATED("Use frc2::PIDController class instead.") PIDController(double p, double i, double d, double f, PIDSource* source, @@ -80,7 +80,7 @@ class PIDController : public PIDBase, public Controller { * @param output The PIDOutput object that is set to the output value * @param period the loop time for doing calculations in seconds. This * particularly affects calculations of the integral and - * differental terms. The default is 0.05 (50ms). + * differential terms. The default is 0.05 (50ms). */ WPI_DEPRECATED("Use frc2::PIDController class instead.") PIDController(double p, double i, double d, PIDSource& source, @@ -96,7 +96,7 @@ class PIDController : public PIDBase, public Controller { * @param output The PIDOutput object that is set to the output value * @param period the loop time for doing calculations in seconds. This * particularly affects calculations of the integral and - * differental terms. The default is 0.05 (50ms). + * differential terms. The default is 0.05 (50ms). */ WPI_DEPRECATED("Use frc2::PIDController class instead.") PIDController(double p, double i, double d, double f, PIDSource& source, diff --git a/wpilibc/src/main/native/include/frc/RobotDrive.h b/wpilibc/src/main/native/include/frc/RobotDrive.h index 7d94b03f92..a8b63e6f9f 100644 --- a/wpilibc/src/main/native/include/frc/RobotDrive.h +++ b/wpilibc/src/main/native/include/frc/RobotDrive.h @@ -349,7 +349,7 @@ class RobotDrive : public MotorSafety { /** * Holonomic Drive method for Mecanum wheeled robots. * - * This is an alias to MecanumDrive_Polar() for backward compatability + * This is an alias to MecanumDrive_Polar() for backward compatibility * * @param magnitude The speed that the robot should drive in a given * direction. [-1.0..1.0] diff --git a/wpilibc/src/main/native/include/frc/SerialPort.h b/wpilibc/src/main/native/include/frc/SerialPort.h index f9edb84240..7c44c75622 100644 --- a/wpilibc/src/main/native/include/frc/SerialPort.h +++ b/wpilibc/src/main/native/include/frc/SerialPort.h @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2008-2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2008-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -106,7 +106,7 @@ class SerialPort : public ErrorBase { * Enable termination and specify the termination character. * * Termination is currently only implemented for receive. - * When the the terminator is recieved, the Read() or Scanf() will return + * When the the terminator is received, the Read() or Scanf() will return * fewer bytes than requested, stopping after the terminator. * * @param terminator The character to use for termination. @@ -169,7 +169,7 @@ class SerialPort : public ErrorBase { * * Specify the amount of data that can be stored before data * from the device is returned to Read or Scanf. If you want - * data that is recieved to be returned immediately, set this to 1. + * data that is received to be returned immediately, set this to 1. * * It the buffer is not filled before the read timeout expires, all * data that has been received so far will be returned. diff --git a/wpilibc/src/main/native/include/frc/Ultrasonic.h b/wpilibc/src/main/native/include/frc/Ultrasonic.h index 637c6fc2fc..f6d301b389 100644 --- a/wpilibc/src/main/native/include/frc/Ultrasonic.h +++ b/wpilibc/src/main/native/include/frc/Ultrasonic.h @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2008-2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2008-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -132,7 +132,7 @@ class Ultrasonic : public ErrorBase, * the ultrasonic sensors. This scheduling method assures that * the sensors are non-interfering because no two sensors fire * at the same time. If another scheduling algorithm is - * prefered, it can be implemented by pinging the sensors + * preferred, it can be implemented by pinging the sensors * manually and waiting for the results to come back. */ static void SetAutomaticMode(bool enabling); diff --git a/wpilibc/src/main/native/include/frc/controller/RamseteController.h b/wpilibc/src/main/native/include/frc/controller/RamseteController.h index 02159838ff..e746bb33f7 100644 --- a/wpilibc/src/main/native/include/frc/controller/RamseteController.h +++ b/wpilibc/src/main/native/include/frc/controller/RamseteController.h @@ -57,7 +57,7 @@ class RamseteController { /** * Construct a Ramsete unicycle controller. The default arguments for - * b and zeta of 2.0 and 0.7 have been well-tested to produce desireable + * b and zeta of 2.0 and 0.7 have been well-tested to produce desirable * results. */ RamseteController() : RamseteController(2.0, 0.7) {} diff --git a/wpilibc/src/main/native/include/frc/drive/DifferentialDrive.h b/wpilibc/src/main/native/include/frc/drive/DifferentialDrive.h index c6b705a574..86103de1ca 100644 --- a/wpilibc/src/main/native/include/frc/drive/DifferentialDrive.h +++ b/wpilibc/src/main/native/include/frc/drive/DifferentialDrive.h @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2008-2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2008-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -191,7 +191,7 @@ class DifferentialDrive : public RobotDriveBase, void SetQuickStopAlpha(double alpha); /** - * Gets if the power sent to the right side of the drivetrain is multipled by + * Gets if the power sent to the right side of the drivetrain is multiplied by * -1. * * @return true if the right side is inverted @@ -200,9 +200,10 @@ class DifferentialDrive : public RobotDriveBase, /** * Sets if the power sent to the right side of the drivetrain should be - * multipled by -1. + * multiplied by -1. * - * @param rightSideInverted true if right side power should be multipled by -1 + * @param rightSideInverted true if right side power should be multiplied by + * -1 */ void SetRightSideInverted(bool rightSideInverted); diff --git a/wpilibc/src/main/native/include/frc/drive/MecanumDrive.h b/wpilibc/src/main/native/include/frc/drive/MecanumDrive.h index 9ddb57e89e..8435b4daa2 100644 --- a/wpilibc/src/main/native/include/frc/drive/MecanumDrive.h +++ b/wpilibc/src/main/native/include/frc/drive/MecanumDrive.h @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2008-2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2008-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -116,7 +116,7 @@ class MecanumDrive : public RobotDriveBase, void DrivePolar(double magnitude, double angle, double zRotation); /** - * Gets if the power sent to the right side of the drivetrain is multipled by + * Gets if the power sent to the right side of the drivetrain is multiplied by * -1. * * @return true if the right side is inverted @@ -125,9 +125,10 @@ class MecanumDrive : public RobotDriveBase, /** * Sets if the power sent to the right side of the drivetrain should be - * multipled by -1. + * multiplied by -1. * - * @param rightSideInverted true if right side power should be multipled by -1 + * @param rightSideInverted true if right side power should be multiplied by + * -1 */ void SetRightSideInverted(bool rightSideInverted); diff --git a/wpilibc/src/main/native/include/frc/shuffleboard/ShuffleboardWidget.h b/wpilibc/src/main/native/include/frc/shuffleboard/ShuffleboardWidget.h index ea92b930d3..729da4047f 100644 --- a/wpilibc/src/main/native/include/frc/shuffleboard/ShuffleboardWidget.h +++ b/wpilibc/src/main/native/include/frc/shuffleboard/ShuffleboardWidget.h @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2018-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -62,7 +62,7 @@ class ShuffleboardWidget : public ShuffleboardComponent { * Sets the type of widget used to display the data. If not set, the default * widget type will be used. This method should only be used to use a widget * that does not come built into Shuffleboard (i.e. one that comes with a - * custom or thrid-party plugin). To use a widget that is built into + * custom or third-party plugin). To use a widget that is built into * Shuffleboard, use {@link #withWidget(WidgetType)} and {@link * BuiltInWidgets}. * diff --git a/wpilibcExamples/src/main/cpp/examples/DMA/cpp/Robot.cpp b/wpilibcExamples/src/main/cpp/examples/DMA/cpp/Robot.cpp index a4030a5bb5..fb3999b374 100644 --- a/wpilibcExamples/src/main/cpp/examples/DMA/cpp/Robot.cpp +++ b/wpilibcExamples/src/main/cpp/examples/DMA/cpp/Robot.cpp @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2019-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -54,7 +54,7 @@ class Robot : public frc::TimedRobot { int32_t remaining = 0; int32_t status = 0; // Update our sample. remaining is the number of samples remaining in the - // buffer status is more specfic error messages if readStatus is not OK. + // buffer status is more specific error messages if readStatus is not OK. // Wait 1ms if buffer is empty HAL_DMAReadStatus readStatus = sample.Update(&m_dma, 1_ms, &remaining, &status); diff --git a/wpilibcExamples/src/main/cpp/examples/GyroMecanum/cpp/Robot.cpp b/wpilibcExamples/src/main/cpp/examples/GyroMecanum/cpp/Robot.cpp index 738ff32e06..86b4f24cc1 100644 --- a/wpilibcExamples/src/main/cpp/examples/GyroMecanum/cpp/Robot.cpp +++ b/wpilibcExamples/src/main/cpp/examples/GyroMecanum/cpp/Robot.cpp @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */ +/* Copyright (c) 2017-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -13,7 +13,7 @@ /** * This is a sample program that uses mecanum drive with a gyro sensor to - * maintian rotation vectorsin relation to the starting orientation of the robot + * maintain rotation vectorsin relation to the starting orientation of the robot * (field-oriented controls). */ class Robot : public frc::TimedRobot { diff --git a/wpilibcExamples/src/main/cpp/examples/examples.json b/wpilibcExamples/src/main/cpp/examples/examples.json index aae80e177a..49eb6f0e7a 100644 --- a/wpilibcExamples/src/main/cpp/examples/examples.json +++ b/wpilibcExamples/src/main/cpp/examples/examples.json @@ -150,7 +150,7 @@ "Complete List", "Sensors", "Analog", - "Joysitck" + "Joystick" ], "foldername": "GyroMecanum", "gradlebase": "cpp", diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/AddressableLED.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/AddressableLED.java index f2ab81b9fd..5a333db934 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/AddressableLED.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/AddressableLED.java @@ -98,7 +98,7 @@ public class AddressableLED implements AutoCloseable { /** * Starts the output. * - *

The output writes continously. + *

The output writes continuously. */ public void start() { AddressableLEDJNI.start(m_handle); diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/controller/RamseteController.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/controller/RamseteController.java index 43a61bdbdd..b59735268e 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/controller/RamseteController.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/controller/RamseteController.java @@ -66,7 +66,7 @@ public class RamseteController { /** * Construct a Ramsete unicycle controller. The default arguments for - * b and zeta of 2.0 and 0.7 have been well-tested to produce desireable + * b and zeta of 2.0 and 0.7 have been well-tested to produce desirable * results. */ public RamseteController() { diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/drive/DifferentialDrive.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/drive/DifferentialDrive.java index cbfd3c0532..88a6ff9fd8 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/drive/DifferentialDrive.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/drive/DifferentialDrive.java @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2008-2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2008-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -393,7 +393,7 @@ public class DifferentialDrive extends RobotDriveBase implements Sendable, AutoC } /** - * Gets if the power sent to the right side of the drivetrain is multipled by -1. + * Gets if the power sent to the right side of the drivetrain is multiplied by -1. * * @return true if the right side is inverted */ @@ -402,9 +402,9 @@ public class DifferentialDrive extends RobotDriveBase implements Sendable, AutoC } /** - * Sets if the power sent to the right side of the drivetrain should be multipled by -1. + * Sets if the power sent to the right side of the drivetrain should be multiplied by -1. * - * @param rightSideInverted true if right side power should be multipled by -1 + * @param rightSideInverted true if right side power should be multiplied by -1 */ public void setRightSideInverted(boolean rightSideInverted) { m_rightSideInvertMultiplier = rightSideInverted ? -1.0 : 1.0; diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/drive/MecanumDrive.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/drive/MecanumDrive.java index 702bdf5d06..d709004517 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/drive/MecanumDrive.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/drive/MecanumDrive.java @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2008-2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2008-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -215,7 +215,7 @@ public class MecanumDrive extends RobotDriveBase implements Sendable, AutoClosea } /** - * Gets if the power sent to the right side of the drivetrain is multipled by -1. + * Gets if the power sent to the right side of the drivetrain is multiplied by -1. * * @return true if the right side is inverted */ @@ -224,9 +224,9 @@ public class MecanumDrive extends RobotDriveBase implements Sendable, AutoClosea } /** - * Sets if the power sent to the right side of the drivetrain should be multipled by -1. + * Sets if the power sent to the right side of the drivetrain should be multiplied by -1. * - * @param rightSideInverted true if right side power should be multipled by -1 + * @param rightSideInverted true if right side power should be multiplied by -1 */ public void setRightSideInverted(boolean rightSideInverted) { m_rightSideInvertMultiplier = rightSideInverted ? -1.0 : 1.0; diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ShuffleboardWidget.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ShuffleboardWidget.java index 3dc6622766..c929f4a7df 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ShuffleboardWidget.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ShuffleboardWidget.java @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2018 FIRST. All Rights Reserved. */ +/* Copyright (c) 2018-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -36,7 +36,7 @@ abstract class ShuffleboardWidget> /** * Sets the type of widget used to display the data. If not set, the default widget type will be * used. This method should only be used to use a widget that does not come built into - * Shuffleboard (i.e. one that comes with a custom or thrid-party plugin). To use a widget that + * Shuffleboard (i.e. one that comes with a custom or third-party plugin). To use a widget that * is built into Shuffleboard, use {@link #withWidget(WidgetType)} and {@link BuiltInWidgets}. * * @param widgetType the type of the widget used to display the data diff --git a/wpilibj/src/test/java/edu/wpi/first/wpilibj/MockHardwareExtension.java b/wpilibj/src/test/java/edu/wpi/first/wpilibj/MockHardwareExtension.java index 467cb47ffe..7406ca9f98 100644 --- a/wpilibj/src/test/java/edu/wpi/first/wpilibj/MockHardwareExtension.java +++ b/wpilibj/src/test/java/edu/wpi/first/wpilibj/MockHardwareExtension.java @@ -21,7 +21,7 @@ public final class MockHardwareExtension implements BeforeAllCallback { @Override public void beforeAll(ExtensionContext context) { - getRoot(context).getStore(Namespace.GLOBAL).getOrComputeIfAbsent("HAL Initalized", key -> { + getRoot(context).getStore(Namespace.GLOBAL).getOrComputeIfAbsent("HAL Initialized", key -> { initializeHardware(); return true; }, Boolean.class); diff --git a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/gyromecanum/Robot.java b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/gyromecanum/Robot.java index 079318a746..622fda417b 100644 --- a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/gyromecanum/Robot.java +++ b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/gyromecanum/Robot.java @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */ +/* Copyright (c) 2017-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -15,7 +15,7 @@ import edu.wpi.first.wpilibj.drive.MecanumDrive; /** * This is a sample program that uses mecanum drive with a gyro sensor to - * maintian rotation vectorsin relation to the starting orientation of the robot + * maintain rotation vectorsin relation to the starting orientation of the robot * (field-oriented controls). */ public class Robot extends TimedRobot { diff --git a/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/fixtures/DIOCrossConnectFixture.java b/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/fixtures/DIOCrossConnectFixture.java index ade9e69e84..fa17baa420 100644 --- a/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/fixtures/DIOCrossConnectFixture.java +++ b/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/fixtures/DIOCrossConnectFixture.java @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2008-2018 FIRST. All Rights Reserved. */ +/* Copyright (c) 2008-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -78,7 +78,7 @@ public class DIOCrossConnectFixture implements ITestFixture { @Override public boolean teardown() { - logger.log(Level.FINE, "Begining teardown"); + logger.log(Level.FINE, "Beginning teardown"); if (m_allocated) { m_input.close(); m_output.close(); diff --git a/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/fixtures/FakeCounterFixture.java b/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/fixtures/FakeCounterFixture.java index a944421722..8dbb4d33fa 100644 --- a/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/fixtures/FakeCounterFixture.java +++ b/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/fixtures/FakeCounterFixture.java @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2008-2018 FIRST. All Rights Reserved. */ +/* Copyright (c) 2008-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -98,7 +98,7 @@ public class FakeCounterFixture implements ITestFixture { */ @Override public boolean teardown() { - logger.log(Level.FINE, "Begining teardown"); + logger.log(Level.FINE, "Beginning teardown"); m_counter.close(); m_source.close(); if (m_allocated) { // Only tear down the dio if this class allocated it diff --git a/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/fixtures/FakeEncoderFixture.java b/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/fixtures/FakeEncoderFixture.java index 2b2b852af6..ef9da0e38e 100644 --- a/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/fixtures/FakeEncoderFixture.java +++ b/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/fixtures/FakeEncoderFixture.java @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2008-2018 FIRST. All Rights Reserved. */ +/* Copyright (c) 2008-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -100,7 +100,7 @@ public class FakeEncoderFixture implements ITestFixture { */ @Override public boolean teardown() { - logger.fine("Begining teardown"); + logger.fine("Beginning teardown"); m_source.close(); logger.finer("Source freed " + m_sourcePort[0] + ", " + m_sourcePort[1]); m_encoder.close(); diff --git a/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/test/AbstractTestSuite.java b/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/test/AbstractTestSuite.java index e4b2035d16..54aae9ef17 100644 --- a/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/test/AbstractTestSuite.java +++ b/wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/test/AbstractTestSuite.java @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2008-2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2008-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -116,7 +116,7 @@ public abstract class AbstractTestSuite { | IllegalAccessException ex) { // This shouldn't happen unless the constructor is changed in some // way. - logger.log(Level.SEVERE, "Test suites can not take paramaters in their constructors.", + logger.log(Level.SEVERE, "Test suites can not take parameters in their constructors.", ex); } } else if (c.getAnnotation(SuiteClasses.class) != null) { @@ -212,7 +212,7 @@ public abstract class AbstractTestSuite { | IllegalAccessException ex) { // This shouldn't happen unless the constructor is changed in some // way. - logger.log(Level.SEVERE, "Test suites can not take paramaters in their constructors.", + logger.log(Level.SEVERE, "Test suites can not take parameters in their constructors.", ex); } } diff --git a/wpilibjIntegrationTests/src/main/resources/logging.properties b/wpilibjIntegrationTests/src/main/resources/logging.properties index b15c5347aa..33ad75f26f 100644 --- a/wpilibjIntegrationTests/src/main/resources/logging.properties +++ b/wpilibjIntegrationTests/src/main/resources/logging.properties @@ -6,7 +6,7 @@ handlers=java.util.logging.ConsoleHandler # Default global logging level. # This specifies which kinds of events are logged across # all loggers. For any given facility this global level -# can be overriden by a facility specific level +# can be overridden by a facility specific level # Note that the ConsoleHandler also has a separate level # setting to limit messages printed to the console. #.level= INFO diff --git a/wpimath/src/main/java/edu/wpi/first/wpilibj/kinematics/MecanumDriveKinematics.java b/wpimath/src/main/java/edu/wpi/first/wpilibj/kinematics/MecanumDriveKinematics.java index fd3b4ec187..8c1d5d3965 100644 --- a/wpimath/src/main/java/edu/wpi/first/wpilibj/kinematics/MecanumDriveKinematics.java +++ b/wpimath/src/main/java/edu/wpi/first/wpilibj/kinematics/MecanumDriveKinematics.java @@ -21,7 +21,7 @@ import edu.wpi.first.wpilibj.geometry.Translation2d; * individual wheel speeds) uses the relative locations of the wheels with * respect to the center of rotation. The center of rotation for inverse * kinematics is also variable. This means that you can set your set your center - * of rotation in a corner of the robot to perform special evasion manuevers. + * of rotation in a corner of the robot to perform special evasion maneuvers. * *

Forward kinematics (converting an array of wheel speeds into the overall * chassis motion) is performs the exact opposite of what inverse kinematics @@ -84,7 +84,7 @@ public class MecanumDriveKinematics { * operations, the center of rotation is usually the same as the physical * center of the robot; therefore, the argument is defaulted to that use case. * However, if you wish to change the center of rotation for evasive - * manuevers, vision alignment, or for any other use case, you can do so. + * maneuvers, vision alignment, or for any other use case, you can do so. * * @param chassisSpeeds The desired chassis speed. * @param centerOfRotationMeters The center of rotation. For example, if you set the diff --git a/wpimath/src/main/java/edu/wpi/first/wpilibj/kinematics/SwerveDriveKinematics.java b/wpimath/src/main/java/edu/wpi/first/wpilibj/kinematics/SwerveDriveKinematics.java index 657b39b764..a1dba43185 100644 --- a/wpimath/src/main/java/edu/wpi/first/wpilibj/kinematics/SwerveDriveKinematics.java +++ b/wpimath/src/main/java/edu/wpi/first/wpilibj/kinematics/SwerveDriveKinematics.java @@ -25,7 +25,7 @@ import edu.wpi.first.wpilibj.geometry.Translation2d; * individual module states) uses the relative locations of the modules with * respect to the center of rotation. The center of rotation for inverse * kinematics is also variable. This means that you can set your set your center - * of rotation in a corner of the robot to perform special evasion manuevers. + * of rotation in a corner of the robot to perform special evasion maneuvers. * *

Forward kinematics (converting an array of module states into the overall * chassis motion) is performs the exact opposite of what inverse kinematics @@ -50,7 +50,7 @@ public class SwerveDriveKinematics { /** * Constructs a swerve drive kinematics object. This takes in a variable * number of wheel locations as Translation2ds. The order in which you pass in - * the wheel locations is the same order that you will recieve the module + * the wheel locations is the same order that you will receive the module * states when performing inverse kinematics. It is also expected that you * pass in the module states in the same order when calling the forward * kinematics methods. @@ -84,7 +84,7 @@ public class SwerveDriveKinematics { * operations, the center of rotation is usually the same as the physical * center of the robot; therefore, the argument is defaulted to that use case. * However, if you wish to change the center of rotation for evasive - * manuevers, vision alignment, or for any other use case, you can do so. + * maneuvers, vision alignment, or for any other use case, you can do so. * * @param chassisSpeeds The desired chassis speed. * @param centerOfRotationMeters The center of rotation. For example, if you set the diff --git a/wpimath/src/main/native/include/frc/kinematics/MecanumDriveKinematics.h b/wpimath/src/main/native/include/frc/kinematics/MecanumDriveKinematics.h index c306f1a7c5..a0ccb52974 100644 --- a/wpimath/src/main/native/include/frc/kinematics/MecanumDriveKinematics.h +++ b/wpimath/src/main/native/include/frc/kinematics/MecanumDriveKinematics.h @@ -24,7 +24,7 @@ namespace frc { * individual wheel speeds) uses the relative locations of the wheels with * respect to the center of rotation. The center of rotation for inverse * kinematics is also variable. This means that you can set your set your center - * of rotation in a corner of the robot to perform special evasion manuevers. + * of rotation in a corner of the robot to perform special evasion maneuvers. * * Forward kinematics (converting an array of wheel speeds into the overall * chassis motion) is performs the exact opposite of what inverse kinematics @@ -78,7 +78,7 @@ class MecanumDriveKinematics { * operations, the center of rotation is usually the same as the physical * center of the robot; therefore, the argument is defaulted to that use case. * However, if you wish to change the center of rotation for evasive - * manuevers, vision alignment, or for any other use case, you can do so. + * maneuvers, vision alignment, or for any other use case, you can do so. * * @param chassisSpeeds The desired chassis speed. * @param centerOfRotation The center of rotation. For example, if you set the diff --git a/wpimath/src/main/native/include/frc/kinematics/SwerveDriveKinematics.h b/wpimath/src/main/native/include/frc/kinematics/SwerveDriveKinematics.h index a5b1ca48c1..0ed50b42d8 100644 --- a/wpimath/src/main/native/include/frc/kinematics/SwerveDriveKinematics.h +++ b/wpimath/src/main/native/include/frc/kinematics/SwerveDriveKinematics.h @@ -28,7 +28,7 @@ namespace frc { * individual module states) uses the relative locations of the modules with * respect to the center of rotation. The center of rotation for inverse * kinematics is also variable. This means that you can set your set your center - * of rotation in a corner of the robot to perform special evasion manuevers. + * of rotation in a corner of the robot to perform special evasion maneuvers. * * Forward kinematics (converting an array of module states into the overall * chassis motion) is performs the exact opposite of what inverse kinematics @@ -48,7 +48,7 @@ class SwerveDriveKinematics { /** * Constructs a swerve drive kinematics object. This takes in a variable * number of wheel locations as Translation2ds. The order in which you pass in - * the wheel locations is the same order that you will recieve the module + * the wheel locations is the same order that you will receive the module * states when performing inverse kinematics. It is also expected that you * pass in the module states in the same order when calling the forward * kinematics methods. @@ -87,7 +87,7 @@ class SwerveDriveKinematics { * operations, the center of rotation is usually the same as the physical * center of the robot; therefore, the argument is defaulted to that use case. * However, if you wish to change the center of rotation for evasive - * manuevers, vision alignment, or for any other use case, you can do so. + * maneuvers, vision alignment, or for any other use case, you can do so. * * @param chassisSpeeds The desired chassis speed. * @param centerOfRotation The center of rotation. For example, if you set the diff --git a/wpimath/src/main/native/include/frc/system/RungeKutta.h b/wpimath/src/main/native/include/frc/system/RungeKutta.h index f54e558fc8..a83cafc28f 100644 --- a/wpimath/src/main/native/include/frc/system/RungeKutta.h +++ b/wpimath/src/main/native/include/frc/system/RungeKutta.h @@ -52,7 +52,7 @@ T RungeKutta(F&& f, T x, U u, units::second_t dt) { * * @param f The function to integrate. It must take two arguments x and t. * @param x The initial value of x. - * @param t The intial value of t. + * @param t The initial value of t. * @param dt The time over which to integrate. */ template diff --git a/wpiutil/src/main/native/cpp/TCPStream.cpp b/wpiutil/src/main/native/cpp/TCPStream.cpp index d4e36714ef..4af3e6f5fe 100644 --- a/wpiutil/src/main/native/cpp/TCPStream.cpp +++ b/wpiutil/src/main/native/cpp/TCPStream.cpp @@ -1,7 +1,7 @@ /* TCPStream.h - TCPStream class definition. TCPStream provides methods to trasnfer + TCPStream class definition. TCPStream provides methods to transfer data between peers over a TCP/IP connection. ------------------------------------------ diff --git a/wpiutil/src/main/native/cpp/http_parser.cpp b/wpiutil/src/main/native/cpp/http_parser.cpp index fb56010d8e..bc442b2ce2 100644 --- a/wpiutil/src/main/native/cpp/http_parser.cpp +++ b/wpiutil/src/main/native/cpp/http_parser.cpp @@ -1771,7 +1771,7 @@ reexecute: /* Here we call the headers_complete callback. This is somewhat * different than other callbacks because if the user returns 1, we * will interpret that as saying that this message has no body. This - * is needed for the annoying case of recieving a response to a HEAD + * is needed for the annoying case of receiving a response to a HEAD * request. * * We'd like to use CALLBACK_NOTIFY_NOADVANCE() here but we cannot, so diff --git a/wpiutil/src/main/native/include/wpi/Chrono.h b/wpiutil/src/main/native/include/wpi/Chrono.h index 4593e857bc..33341c6f9c 100644 --- a/wpiutil/src/main/native/include/wpi/Chrono.h +++ b/wpiutil/src/main/native/include/wpi/Chrono.h @@ -22,7 +22,7 @@ class raw_ostream; namespace sys { /// A time point on the system clock. This is provided for two reasons: -/// - to insulate us agains subtle differences in behavoir to differences in +/// - to insulate us against subtle differences in behavior to differences in /// system clock precision (which is implementation-defined and differs between /// platforms). /// - to shorten the type name diff --git a/wpiutil/src/main/native/include/wpi/TCPStream.h b/wpiutil/src/main/native/include/wpi/TCPStream.h index 6a38ffb411..0c6e8a9117 100644 --- a/wpiutil/src/main/native/include/wpi/TCPStream.h +++ b/wpiutil/src/main/native/include/wpi/TCPStream.h @@ -1,7 +1,7 @@ /* TCPStream.h - TCPStream class interface. TCPStream provides methods to trasnfer + TCPStream class interface. TCPStream provides methods to transfer data between peers over a TCP/IP connection. ------------------------------------------ diff --git a/wpiutil/src/main/native/include/wpi/http_parser.h b/wpiutil/src/main/native/include/wpi/http_parser.h index f4bf9fd01a..2189b8fbd9 100644 --- a/wpiutil/src/main/native/include/wpi/http_parser.h +++ b/wpiutil/src/main/native/include/wpi/http_parser.h @@ -63,7 +63,7 @@ struct http_parser_settings; * chunked' headers that indicate the presence of a body. * * Returning `2` from on_headers_complete will tell parser that it should not - * expect neither a body nor any futher responses on this connection. This is + * expect neither a body nor any further responses on this connection. This is * useful for handling responses to a CONNECT request which may not contain * `Upgrade` or `Connection: upgrade` headers. *