[wpilib] Use misspell to find more spelling errors (NFC) (#2679)

This commit is contained in:
sciencewhiz
2020-09-02 19:41:05 -07:00
committed by GitHub
parent 6a1e5385e5
commit f758af826d
20 changed files with 47 additions and 47 deletions

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. */
@@ -330,7 +330,7 @@ public abstract class Command implements Sendable, AutoCloseable {
* method for time-sensitive commands.
*
* <p>Returning false will result in the command never ending automatically. It may still be
* cancelled manually or interrupted by another command. Returning true will result in the
* canceled manually or interrupted by another command. Returning true will result in the
* command executing once and finishing immediately. We recommend using {@link InstantCommand}
* for this.
*
@@ -447,7 +447,7 @@ public abstract class Command implements Sendable, AutoCloseable {
/**
* Clears list of subsystem requirements. This is only used by
* {@link ConditionalCommand} so cancelling the chosen command works properly
* {@link ConditionalCommand} so canceling the chosen command works properly
* in {@link CommandGroup}.
*/
protected void clearRequirements() {

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2019 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. */
@@ -141,7 +141,7 @@ public abstract class ConditionalCommand extends Command {
if (m_chosenCommand != null) {
/*
* This is a hack to make cancelling the chosen command inside a
* This is a hack to make canceling the chosen command inside a
* CommandGroup work properly
*/
m_chosenCommand.clearRequirements();

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2011-2019 FIRST. All Rights Reserved. */
/* Copyright (c) 2011-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. */
@@ -137,7 +137,7 @@ void CommandGroup::_Execute() {
// If command timed out, cancel it so it's removed from the Scheduler
if (entry->IsTimedOut()) cmd->_Cancel();
// If command finished or was cancelled, remove it from Scheduler
// If command finished or was canceled, remove it from Scheduler
if (cmd->Run()) {
break;
} else {
@@ -192,7 +192,7 @@ void CommandGroup::_Execute() {
child->_Cancel();
}
// If child finished or was cancelled, set it to nullptr. nullptr entries
// If child finished or was canceled, set it to nullptr. nullptr entries
// are removed later.
if (!child->Run()) {
child->Removed();

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2019 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. */
@@ -46,7 +46,7 @@ void ConditionalCommand::_Initialize() {
}
if (m_chosenCommand != nullptr) {
// This is a hack to make cancelling the chosen command inside a
// This is a hack to make canceling the chosen command inside a
// CommandGroup work properly
m_chosenCommand->ClearRequirements();

View File

@@ -171,8 +171,8 @@ void Scheduler::InitSendable(SendableBuilder& builder) {
// Cancel commands whose cancel buttons were pressed on the SmartDashboard
if (!toCancel.empty()) {
for (auto& command : m_impl->commands) {
for (const auto& cancelled : toCancel) {
if (command->GetID() == cancelled) {
for (const auto& canceled : toCancel) {
if (command->GetID() == canceled) {
command->Cancel();
}
}

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2011-2019 FIRST. All Rights Reserved. */
/* Copyright (c) 2011-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. */
@@ -318,7 +318,7 @@ class Command : public ErrorBase,
/**
* Clears list of subsystem requirements.
*
* This is only used by ConditionalCommand so cancelling the chosen command
* This is only used by ConditionalCommand so canceling the chosen command
* works properly in CommandGroup.
*/
void ClearRequirements();
@@ -344,7 +344,7 @@ class Command : public ErrorBase,
* time-sensitive commands.
*
* Returning false will result in the command never ending automatically.
* It may still be cancelled manually or interrupted by another command.
* It may still be canceled manually or interrupted by another command.
* Returning true will result in the command executing once and finishing
* immediately. We recommend using InstantCommand for this.
*