[wpilib] Use misspell to fix spelling errors (NFC) (#2674)

This commit is contained in:
sciencewhiz
2020-08-31 00:33:11 -07:00
committed by GitHub
parent ad6c8b882e
commit 3e41d92c18
64 changed files with 119 additions and 117 deletions

View File

@@ -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)
```

View File

@@ -228,7 +228,7 @@ struct CS_Event {
};
/**
* USB camera infomation
* USB camera information
*/
typedef struct CS_UsbCameraInfo {
int dev;

View File

@@ -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 {

View File

@@ -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;

View File

@@ -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);
}

View File

@@ -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

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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);

View File

@@ -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 <typename THandle, typename TStruct, int16_t size>
THandle DigitalHandleResource<THandle, TStruct, size>::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<TStruct> DigitalHandleResource<THandle, TStruct, size>::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];
}

View File

@@ -64,7 +64,7 @@ template <typename THandle, typename TStruct, int16_t size,
THandle
IndexedClassedHandleResource<THandle, TStruct, size, enumValue>::Allocate(
int16_t index, std::shared_ptr<TStruct> 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<THandle, TStruct, size, enumValue>::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];
}

View File

@@ -59,7 +59,7 @@ template <typename THandle, typename TStruct, int16_t size,
HAL_HandleEnum enumValue>
THandle IndexedHandleResource<THandle, TStruct, size, enumValue>::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<THandle, TStruct, size, enumValue>::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];
}

View File

@@ -85,7 +85,7 @@ LimitedClassedHandleResource<THandle, TStruct, size, enumValue>::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];
}

View File

@@ -80,7 +80,7 @@ LimitedHandleResource<THandle, TStruct, size, enumValue>::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];
}

View File

@@ -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;
}

View File

@@ -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

View File

@@ -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.
*/

View File

@@ -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.

View File

@@ -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.

View File

@@ -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();
}

View File

@@ -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

View File

@@ -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."

View File

@@ -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"

View File

@@ -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.

View File

@@ -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

View File

@@ -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);

View File

@@ -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);

View File

@@ -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");

View File

@@ -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];

View File

@@ -151,7 +151,7 @@ class AddressableLED : public ErrorBase {
/**
* Starts the output.
*
* <p>The output writes continously.
* <p>The output writes continuously.
*/
void Start();

View File

@@ -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

View File

@@ -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,

View File

@@ -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]

View File

@@ -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.

View File

@@ -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);

View File

@@ -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) {}

View File

@@ -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);

View File

@@ -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);

View File

@@ -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<Derived> {
* 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}.
*

View File

@@ -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);

View File

@@ -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 {

View File

@@ -150,7 +150,7 @@
"Complete List",
"Sensors",
"Analog",
"Joysitck"
"Joystick"
],
"foldername": "GyroMecanum",
"gradlebase": "cpp",

View File

@@ -98,7 +98,7 @@ public class AddressableLED implements AutoCloseable {
/**
* Starts the output.
*
* <p>The output writes continously.
* <p>The output writes continuously.
*/
public void start() {
AddressableLEDJNI.start(m_handle);

View File

@@ -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() {

View File

@@ -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;

View File

@@ -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;

View File

@@ -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<W extends ShuffleboardWidget<W>>
/**
* 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

View File

@@ -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);

View File

@@ -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 {

View File

@@ -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();

View File

@@ -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

View File

@@ -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();

View File

@@ -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);
}
}

View File

@@ -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

View File

@@ -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.
*
* <p>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

View File

@@ -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.
*
* <p>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

View File

@@ -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

View File

@@ -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

View File

@@ -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 <typename F, typename T>

View File

@@ -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.
------------------------------------------

View File

@@ -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

View File

@@ -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

View File

@@ -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.
------------------------------------------

View File

@@ -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.
*