diff --git a/commandsv2/src/test/python/test_schedulecommand.py b/commandsv2/src/test/python/test_schedulecommand.py index 401f4e0d8b..07822e0fbb 100644 --- a/commandsv2/src/test/python/test_schedulecommand.py +++ b/commandsv2/src/test/python/test_schedulecommand.py @@ -24,7 +24,7 @@ def test_scheduleCommandSchedule(scheduler: commands2.CommandScheduler): verify(command2).schedule() -def test_scheduleCommandDruingRun(scheduler: commands2.CommandScheduler): +def test_scheduleCommandDuringRun(scheduler: commands2.CommandScheduler): toSchedule = commands2.InstantCommand() scheduleCommand = commands2.ScheduleCommand(toSchedule) group = commands2.SequentialCommandGroup( diff --git a/commandsv2/src/test/python/test_sequentialcommandgroup.py b/commandsv2/src/test/python/test_sequentialcommandgroup.py index a6ecfb9699..f9db778971 100644 --- a/commandsv2/src/test/python/test_sequentialcommandgroup.py +++ b/commandsv2/src/test/python/test_sequentialcommandgroup.py @@ -16,7 +16,7 @@ class TestSequentialCommandGroupComposition(MultiCompositionTestBase): return commands2.SequentialCommandGroup(*members) -def test_sequntialGroupSchedule(scheduler: commands2.CommandScheduler): +def test_sequentialGroupSchedule(scheduler: commands2.CommandScheduler): command1 = commands2.Command() command2 = commands2.Command() diff --git a/commandsv3/src/test/java/org/wpilib/command3/SchedulerSideloadFunctionTests.java b/commandsv3/src/test/java/org/wpilib/command3/SchedulerSideloadFunctionTests.java index 17a1cfb222..1da2e2a561 100644 --- a/commandsv3/src/test/java/org/wpilib/command3/SchedulerSideloadFunctionTests.java +++ b/commandsv3/src/test/java/org/wpilib/command3/SchedulerSideloadFunctionTests.java @@ -56,7 +56,7 @@ class SchedulerSideloadFunctionTests extends CommandTestBase { Command.noRequirements() .executing( parentCoroutine -> { - m_scheduler.sideload(sidelodCoroutine -> sidelodCoroutine.fork(child)); + m_scheduler.sideload(sideloadCoroutine -> sideloadCoroutine.fork(child)); }) .named("Parent"); diff --git a/cscore/src/main/java/org/wpilib/vision/camera/VideoCamera.java b/cscore/src/main/java/org/wpilib/vision/camera/VideoCamera.java index 3b71e45b2f..829062877e 100644 --- a/cscore/src/main/java/org/wpilib/vision/camera/VideoCamera.java +++ b/cscore/src/main/java/org/wpilib/vision/camera/VideoCamera.java @@ -21,7 +21,7 @@ public class VideoCamera extends VideoSource { public static final int kFixedFluorescent1 = 5100; /** Fixed fluorescent white balance 2. */ - public static final int kFixedFlourescent2 = 5200; + public static final int kFixedFluorescent2 = 5200; /** Default constructor. */ public WhiteBalance() {} diff --git a/cscore/src/main/native/cpp/SourceImpl.cpp b/cscore/src/main/native/cpp/SourceImpl.cpp index f1e9909aad..b9eafb715c 100644 --- a/cscore/src/main/native/cpp/SourceImpl.cpp +++ b/cscore/src/main/native/cpp/SourceImpl.cpp @@ -91,7 +91,7 @@ Frame SourceImpl::GetNextFrame(double timeout, Frame::Time lastFrameTime) { lastFrameTime = m_frame.GetTime(); } - // Wait unitl m_frame has a timestamp other than lastFrameTime + // Wait until m_frame has a timestamp other than lastFrameTime if (!m_frameCv.wait_for( lock, std::chrono::milliseconds(static_cast(timeout * 1000)), [=, this] { return m_frame.GetTime() != lastFrameTime; })) { diff --git a/cscore/src/main/native/include/wpi/cs/VideoCamera.hpp b/cscore/src/main/native/include/wpi/cs/VideoCamera.hpp index 2a9d82e534..d0ae14be5a 100644 --- a/cscore/src/main/native/include/wpi/cs/VideoCamera.hpp +++ b/cscore/src/main/native/include/wpi/cs/VideoCamera.hpp @@ -27,7 +27,7 @@ class VideoCamera : public VideoSource { /// Fixed fluorescent white balance 1. kFixedFluorescent1 = 5100, /// Fixed fluorescent white balance 2. - kFixedFlourescent2 = 5200 + kFixedFluorescent2 = 5200 }; VideoCamera() = default; diff --git a/cscore/src/main/native/linux/UsbCameraImpl.cpp b/cscore/src/main/native/linux/UsbCameraImpl.cpp index 2f6b39ce1c..dad88a86f9 100644 --- a/cscore/src/main/native/linux/UsbCameraImpl.cpp +++ b/cscore/src/main/native/linux/UsbCameraImpl.cpp @@ -70,7 +70,7 @@ static inline struct v4l2_fract FPSToFract(int fps) { return timeperframe; } -// Conversion from v4l2_format pixelformat to VideoMode::PixelFormat +// Conversion from v4l2_format pixelformat to wpi::util::PixelFormat static wpi::util::PixelFormat ToPixelFormat(__u32 pixelFormat) { switch (pixelFormat) { case V4L2_PIX_FMT_MJPEG: @@ -94,7 +94,7 @@ static wpi::util::PixelFormat ToPixelFormat(__u32 pixelFormat) { } } -// Conversion from VideoMode::PixelFormat to v4l2_format pixelformat +// Conversion from wpi::util::PixelFormat to v4l2_format pixelformat static __u32 FromPixelFormat(wpi::util::PixelFormat pixelFormat) { switch (pixelFormat) { case wpi::util::PixelFormat::MJPEG: diff --git a/datalog/src/test/python/test_wpilog.py b/datalog/src/test/python/test_wpilog.py index 594cc34109..6f625e9c84 100644 --- a/datalog/src/test/python/test_wpilog.py +++ b/datalog/src/test/python/test_wpilog.py @@ -1,5 +1,5 @@ import wpilog -def test_existance(): +def test_existence(): pass diff --git a/epilogue-processor/src/main/java/org/wpilib/epilogue/processor/AnnotationProcessor.java b/epilogue-processor/src/main/java/org/wpilib/epilogue/processor/AnnotationProcessor.java index 74706b23ad..84b1de6a0b 100644 --- a/epilogue-processor/src/main/java/org/wpilib/epilogue/processor/AnnotationProcessor.java +++ b/epilogue-processor/src/main/java/org/wpilib/epilogue/processor/AnnotationProcessor.java @@ -44,7 +44,7 @@ public class AnnotationProcessor extends AbstractProcessor { "org.wpilib.epilogue.logging.ClassSpecificLogger"; private static final String kLoggedFqn = "org.wpilib.epilogue.Logged"; - private EpilogueGenerator m_epiloguerGenerator; + private EpilogueGenerator m_epilogueGenerator; private LoggerGenerator m_loggerGenerator; private List m_handlers; @@ -113,7 +113,7 @@ public class AnnotationProcessor extends AbstractProcessor { new ProtobufHandler(processingEnv), // then protobuf new SendableHandler(processingEnv)); - m_epiloguerGenerator = new EpilogueGenerator(processingEnv, customLoggers); + m_epilogueGenerator = new EpilogueGenerator(processingEnv, customLoggers); m_loggerGenerator = new LoggerGenerator(processingEnv, m_handlers); annotations.stream() @@ -418,7 +418,7 @@ public class AnnotationProcessor extends AbstractProcessor { // Sort alphabetically mainRobotClasses.sort(Comparator.comparing(c -> c.getSimpleName().toString())); - m_epiloguerGenerator.writeEpilogueFile(loggerClassNames, mainRobotClasses); + m_epilogueGenerator.writeEpilogueFile(loggerClassNames, mainRobotClasses); } private void warnOfNonLoggableElements(TypeElement clazz) { diff --git a/hal/src/main/native/systemcore/AddressableLEDSimd.hpp b/hal/src/main/native/systemcore/AddressableLEDSimd.hpp index d25ab5aadc..45606b4baa 100644 --- a/hal/src/main/native/systemcore/AddressableLEDSimd.hpp +++ b/hal/src/main/native/systemcore/AddressableLEDSimd.hpp @@ -22,7 +22,7 @@ template using ConvertFunc = void (*)(T); /* - * Conversion funtions perform in-place conversion by swapping elements. + * Conversion functions perform in-place conversion by swapping elements. * The names of the functions indicate the desired wire output order. */ diff --git a/shared/bazel/compiler_flags/windows_flags.rc b/shared/bazel/compiler_flags/windows_flags.rc index 6da55cbb51..36df64aeaf 100644 --- a/shared/bazel/compiler_flags/windows_flags.rc +++ b/shared/bazel/compiler_flags/windows_flags.rc @@ -23,7 +23,7 @@ build:windows --repo_env="BAZEL_LINKOPTS=/DEPENDENTLOADFLAG%:0x1100" ################################ build:windows_arm --platforms="@allwpilib//shared/bazel:windows_arm64" --platform_suffix=winarm64 -# Ignore duplicate inline statment in tools +# Ignore duplicate inline statement in tools build:windows --host_copt=/wd4141 # Ignore utf8 warning in tools build:windows --host_copt=/wd4715 diff --git a/shared/bazel/rules/cc_rules.bzl b/shared/bazel/rules/cc_rules.bzl index 47ede9ace1..26a6921c2b 100644 --- a/shared/bazel/rules/cc_rules.bzl +++ b/shared/bazel/rules/cc_rules.bzl @@ -194,8 +194,8 @@ def third_party_cc_lib_helper( """ Helper for src / headers pairs that aren't directly compiled, but rather pulled into a bigger library. - Due to allwpilibs directory structure of includes and sources living next to eachother, it often is required - to make a header shim to deal with the include path, and a filegroup of the sources. This pattern is extermely + Due to allwpilib's directory structure of includes and sources living next to eachother, it often is required + to make a header shim to deal with the include path, and a filegroup of the sources. This pattern is extremely common for the thirdparty libraries that live beneath certain libraries. This will produce a library shim with the include path stripped, a filegroup of sources, and packages that can be @@ -205,7 +205,7 @@ def third_party_cc_lib_helper( include_root: The package relative path to the header files. This will be used to glob the files and strip the include prefix src_root: Optional. The package relative path to the source files. src_excludes: Optional. Used to exclude files from the src_root glob - visibilty: The visibility of header shim / source files / package files + visibility: The visibility of header shim / source files / package files """ cc_library( name = name + "-headers", @@ -357,7 +357,7 @@ def wpilib_cc_shared_library( libfood.so, otherwise produce libfoo.so. This matches the wpilib convention for debug library naming. JNI libraries though want to be loaded with the same name for all builds, - which necesitates turning this off. + which necessitates turning this off. win_def_file: The .def file used to specify symbols used in linking on Windows. This is selected automatically such that it is only used on Windows. @@ -515,9 +515,9 @@ def _cc_static_library_impl(ctx): This is a modified version of built in cc_static_library implementation https://github.com/bazelbuild/bazel/blob/8.2.1/src/main/starlark/builtins_bzl/common/cc/experimental_cc_static_library.bzl - The built in version amalgamates all of the transative dependency objects into a single shared library. However, we do not want our - static libraries to only have the symbols related to the objects for this library, and not anything transative. In order to do this, - we add the option to specify transative static_libraries. The rule then filters out the objects that are defines in the other static + The built in version amalgamates all of the transitive dependency objects into a single shared library. However, we do not want our + static libraries to only have the symbols related to the objects for this library, and not anything transitive. In order to do this, + we add the option to specify transitive static_libraries. The rule then filters out the objects that are defines in the other static libraries. """ deps = ctx.attr.deps diff --git a/shared/bazel/rules/halsim_library.bzl b/shared/bazel/rules/halsim_library.bzl index edb1a820c7..b97d2afaaf 100644 --- a/shared/bazel/rules/halsim_library.bzl +++ b/shared/bazel/rules/halsim_library.bzl @@ -4,7 +4,7 @@ def wpilib_halsim_extension( name, **kwargs): """ - Helper wrapper for creating a HALSIM extension. Provides some of the default argments for creating the library. + Helper wrapper for creating a HALSIM extension. Provides some of the default arguments for creating the library. """ wpilib_cc_library( name = name, diff --git a/shared/bazel/rules/robotpy/generate_pybind_build_file.py b/shared/bazel/rules/robotpy/generate_pybind_build_file.py index 1c1f8aec3d..e1b3fcbfdd 100644 --- a/shared/bazel/rules/robotpy/generate_pybind_build_file.py +++ b/shared/bazel/rules/robotpy/generate_pybind_build_file.py @@ -53,7 +53,7 @@ class HeaderToDatConfig: def find_root_dir(include_root): """ - Somewhat niave attempt to find the "root" directory of the repository, + Somewhat naive attempt to find the "root" directory of the repository, as specified from the runfiles path """ if "__main__/" in include_root: @@ -206,9 +206,9 @@ class BazelExtensionModule: for dep_name in all_dependencies: if "native" in dep_name: - transative_deps = set() - self._get_transative_native_dependencies(dep_name, transative_deps) - for d in transative_deps: + transitive_deps = set() + self._get_transitive_native_dependencies(dep_name, transitive_deps) + for d in transitive_deps: base_library = fixup_root_package_name( d.replace("robotpy-native-", "") ) @@ -241,13 +241,13 @@ class BazelExtensionModule: defines.update(h2d_def.defines) return sorted(defines) - def _get_transative_native_dependencies(self, dep_name, transative_deps): + def _get_transitive_native_dependencies(self, dep_name, transitive_deps): entry = self.pkgcache.get(dep_name) - transative_deps.add(dep_name) + transitive_deps.add(dep_name) for req in entry.requires: - if req not in transative_deps: - transative_deps.add(req) - self._get_transative_native_dependencies(req, transative_deps) + if req not in transitive_deps: + transitive_deps.add(req) + self._get_transitive_native_dependencies(req, transitive_deps) def _collect_local_dependency_names(self, dep, all_dependencies): for child_dep in dep.depends: @@ -418,7 +418,7 @@ def generate_pybind_build_file( version_file = None # The entry points defined above are implicit to how the project is broken down in the toml files. - # This addes potentially extra explicitly declared entry points + # This adds potentially extra explicitly declared entry points if "entry-points" in raw_config["project"]: explicit_entry_points = raw_config["project"]["entry-points"] for entry_point_type in explicit_entry_points: diff --git a/shared/bazel/rules/robotpy/hatchlib_native_port/generate_native_lib_files.py b/shared/bazel/rules/robotpy/hatchlib_native_port/generate_native_lib_files.py index b8f357bef4..4d5117bf12 100644 --- a/shared/bazel/rules/robotpy/hatchlib_native_port/generate_native_lib_files.py +++ b/shared/bazel/rules/robotpy/hatchlib_native_port/generate_native_lib_files.py @@ -277,7 +277,7 @@ def _write_libinit_py( if is_windows: contents.append( - f' raise Exception("{lib.name} could not be loaded. Do you have Visual Studio C++ Redistributible installed?")' + f' raise Exception("{lib.name} could not be loaded. Do you have Visual Studio C++ Redistributable installed?")' ) else: contents.append( diff --git a/shared/bazel/rules/robotpy/pybind_rules.bzl b/shared/bazel/rules/robotpy/pybind_rules.bzl index b8030500e5..5a1e58094f 100644 --- a/shared/bazel/rules/robotpy/pybind_rules.bzl +++ b/shared/bazel/rules/robotpy/pybind_rules.bzl @@ -22,7 +22,7 @@ def create_pybind_library( Outputs: _pybind_library - A pybind_library that functions like a header-only cc_library. It will include all - of the extra_hdrs, resolve the include paths, and add a dependency on the semiwrap headrs + of the extra_hdrs, resolve the include paths, and add a dependency on the semiwrap headers - A pybind_extension that wraps the pybind_library and compiles all the source files. Params: diff --git a/wpilibc/src/main/native/cpp/hardware/expansionhub/ExpansionHubPidConstants.cpp b/wpilibc/src/main/native/cpp/hardware/expansionhub/ExpansionHubPidConstants.cpp index 21861656fa..f67e3c0718 100644 --- a/wpilibc/src/main/native/cpp/hardware/expansionhub/ExpansionHubPidConstants.cpp +++ b/wpilibc/src/main/native/cpp/hardware/expansionhub/ExpansionHubPidConstants.cpp @@ -54,7 +54,7 @@ ExpansionHubPidConstants::ExpansionHubPidConstants(int usbId, int channel, m_continuousPublisher = systemServer - .GetBooleanTopic(fmt::format("/rhsp/{}/motor{}/pid/{}/continous", + .GetBooleanTopic(fmt::format("/rhsp/{}/motor{}/pid/{}/continuous", usbId, channel, pidType)) .Publish(options); @@ -68,7 +68,7 @@ ExpansionHubPidConstants::ExpansionHubPidConstants(int usbId, int channel, m_continuousMaximumPublisher = systemServer .GetDoubleTopic( - fmt::format("/rhsp/{}/motor{}/pid/{}/continousMaximum", usbId, + fmt::format("/rhsp/{}/motor{}/pid/{}/continuousMaximum", usbId, channel, pidType)) .Publish(options); } @@ -85,13 +85,13 @@ void ExpansionHubPidConstants::SetFF(double s, double v, double a) { m_aPublisher.Set(a); } -void ExpansionHubPidConstants::EnableContinousInput(double minimumInput, - double maximumInput) { +void ExpansionHubPidConstants::EnableContinuousInput(double minimumInput, + double maximumInput) { m_continuousMaximumPublisher.Set(maximumInput); m_continuousMinimumPublisher.Set(minimumInput); m_continuousPublisher.Set(true); } -void ExpansionHubPidConstants::DisableContinousInput() { +void ExpansionHubPidConstants::DisableContinuousInput() { m_continuousPublisher.Set(false); } diff --git a/wpilibc/src/main/native/cpp/hardware/expansionhub/ExpansionHubServo.cpp b/wpilibc/src/main/native/cpp/hardware/expansionhub/ExpansionHubServo.cpp index 3f2a7792bc..1f7d2bd278 100644 --- a/wpilibc/src/main/native/cpp/hardware/expansionhub/ExpansionHubServo.cpp +++ b/wpilibc/src/main/native/cpp/hardware/expansionhub/ExpansionHubServo.cpp @@ -55,7 +55,7 @@ ExpansionHubServo::~ExpansionHubServo() noexcept { } void ExpansionHubServo::Set(double value) { - if (m_continousMode) { + if (m_continuousMode) { value = std::clamp(value, -1.0, 1.0); value = (value + 1.0) / 2.0; } @@ -118,6 +118,6 @@ void ExpansionHubServo::SetAngleRange(wpi::units::degree_t minAngle, m_maxServoAngle = maxAngle; } -void ExpansionHubServo::SetContinousRotationMode(bool enable) { - m_continousMode = enable; +void ExpansionHubServo::SetContinuousRotationMode(bool enable) { + m_continuousMode = enable; } diff --git a/wpilibc/src/main/native/include/wpi/hardware/expansionhub/ExpansionHubMotor.hpp b/wpilibc/src/main/native/include/wpi/hardware/expansionhub/ExpansionHubMotor.hpp index 18c05a6fa6..c4a382839b 100644 --- a/wpilibc/src/main/native/include/wpi/hardware/expansionhub/ExpansionHubMotor.hpp +++ b/wpilibc/src/main/native/include/wpi/hardware/expansionhub/ExpansionHubMotor.hpp @@ -37,8 +37,8 @@ class ExpansionHubMotor { void SetThrottle(double throttle); /** - * Sets the voltage to run the motor at. This value will be continously scaled - * to match the input voltage. + * Sets the voltage to run the motor at. This value will be continuously + * scaled to match the input voltage. * * @param voltage The voltage to drive the motor at */ diff --git a/wpilibc/src/main/native/include/wpi/hardware/expansionhub/ExpansionHubPidConstants.hpp b/wpilibc/src/main/native/include/wpi/hardware/expansionhub/ExpansionHubPidConstants.hpp index 629dac9b48..aec05d5fb6 100644 --- a/wpilibc/src/main/native/include/wpi/hardware/expansionhub/ExpansionHubPidConstants.hpp +++ b/wpilibc/src/main/native/include/wpi/hardware/expansionhub/ExpansionHubPidConstants.hpp @@ -49,12 +49,12 @@ class ExpansionHubPidConstants { * @param minimumInput The minimum value expected from the input. * @param maximumInput The maximum value expected from the input. */ - void EnableContinousInput(double minimumInput, double maximumInput); + void EnableContinuousInput(double minimumInput, double maximumInput); /** * Disables continuous input. */ - void DisableContinousInput(); + void DisableContinuousInput(); ExpansionHubPidConstants(ExpansionHubPidConstants&) = delete; ExpansionHubPidConstants& operator=(ExpansionHubPidConstants&) = delete; diff --git a/wpilibc/src/main/native/include/wpi/hardware/expansionhub/ExpansionHubServo.hpp b/wpilibc/src/main/native/include/wpi/hardware/expansionhub/ExpansionHubServo.hpp index 1a20ed0a64..4f26e3bf6f 100644 --- a/wpilibc/src/main/native/include/wpi/hardware/expansionhub/ExpansionHubServo.hpp +++ b/wpilibc/src/main/native/include/wpi/hardware/expansionhub/ExpansionHubServo.hpp @@ -116,7 +116,7 @@ class ExpansionHubServo { * * @param enable True to enable continuous rotation mode, false to disable */ - void SetContinousRotationMode(bool enable); + void SetContinuousRotationMode(bool enable); private: wpi::units::microsecond_t GetFullRangeScaleFactor(); @@ -132,7 +132,7 @@ class ExpansionHubServo { wpi::units::microsecond_t m_maxPwm = 2400_us; bool m_reversed = false; - bool m_continousMode = false; + bool m_continuousMode = false; wpi::nt::IntegerPublisher m_pulseWidthPublisher; wpi::nt::IntegerPublisher m_framePeriodPublisher; diff --git a/wpilibc/src/main/python/semiwrap/ExpansionHubPidConstants.yml b/wpilibc/src/main/python/semiwrap/ExpansionHubPidConstants.yml index e98ed02be8..9c7f18ec01 100644 --- a/wpilibc/src/main/python/semiwrap/ExpansionHubPidConstants.yml +++ b/wpilibc/src/main/python/semiwrap/ExpansionHubPidConstants.yml @@ -3,5 +3,5 @@ classes: methods: SetPID: SetFF: - EnableContinousInput: - DisableContinousInput: + EnableContinuousInput: + DisableContinuousInput: diff --git a/wpilibc/src/main/python/semiwrap/ExpansionHubServo.yml b/wpilibc/src/main/python/semiwrap/ExpansionHubServo.yml index 206ea545cd..1bbaffe333 100644 --- a/wpilibc/src/main/python/semiwrap/ExpansionHubServo.yml +++ b/wpilibc/src/main/python/semiwrap/ExpansionHubServo.yml @@ -11,4 +11,4 @@ classes: SetAngleRange: SetPWMRange: SetReversed: - SetContinousRotationMode: + SetContinuousRotationMode: diff --git a/wpilibc/src/main/python/semiwrap/Tracer.yml b/wpilibc/src/main/python/semiwrap/Tracer.yml index 95767e438a..a1fb1b5bfa 100644 --- a/wpilibc/src/main/python/semiwrap/Tracer.yml +++ b/wpilibc/src/main/python/semiwrap/Tracer.yml @@ -24,7 +24,7 @@ inline_code: |- self->PrintEpochs(s); return py::cast(s.str()); }, - "Retreives list of epochs added so far as a string\n" + "Retrieves list of epochs added so far as a string\n" "\n" ".. versionadded:: 2021.1.2\n" "\n" diff --git a/wpilibj/src/main/java/org/wpilib/hardware/expansionhub/ExpansionHubMotor.java b/wpilibj/src/main/java/org/wpilib/hardware/expansionhub/ExpansionHubMotor.java index 2bf42e9bef..1b98df3a0a 100644 --- a/wpilibj/src/main/java/org/wpilib/hardware/expansionhub/ExpansionHubMotor.java +++ b/wpilibj/src/main/java/org/wpilib/hardware/expansionhub/ExpansionHubMotor.java @@ -162,7 +162,7 @@ public class ExpansionHubMotor implements AutoCloseable { } /** - * Sets the voltage to run the motor at. This value will be continously scaled to match the input + * Sets the voltage to run the motor at. This value will be continuously scaled to match the input * voltage. * * @param voltage The voltage to drive the motor at diff --git a/wpilibj/src/main/java/org/wpilib/hardware/expansionhub/ExpansionHubPidConstants.java b/wpilibj/src/main/java/org/wpilib/hardware/expansionhub/ExpansionHubPidConstants.java index 20a504fc13..f0f493cd71 100644 --- a/wpilibj/src/main/java/org/wpilib/hardware/expansionhub/ExpansionHubPidConstants.java +++ b/wpilibj/src/main/java/org/wpilib/hardware/expansionhub/ExpansionHubPidConstants.java @@ -96,7 +96,7 @@ public class ExpansionHubPidConstants { + motorNumber + "/pid/" + pidType - + "/continousMaximum") + + "/continuousMaximum") .publish(options); } @@ -147,7 +147,7 @@ public class ExpansionHubPidConstants { m_continuousPublisher.set(true); } - /** Disable continous input mode. */ + /** Disable continuous input mode. */ public void disableContinuousInput() { m_continuousPublisher.set(false); } diff --git a/wpilibj/src/main/java/org/wpilib/hardware/expansionhub/ExpansionHubServo.java b/wpilibj/src/main/java/org/wpilib/hardware/expansionhub/ExpansionHubServo.java index 30f9858490..eec7a19b5d 100644 --- a/wpilibj/src/main/java/org/wpilib/hardware/expansionhub/ExpansionHubServo.java +++ b/wpilibj/src/main/java/org/wpilib/hardware/expansionhub/ExpansionHubServo.java @@ -22,7 +22,7 @@ public class ExpansionHubServo implements AutoCloseable { private final int m_channel; private boolean m_reversed; - private boolean m_continousMode; + private boolean m_continuousMode; private final IntegerPublisher m_pulseWidthPublisher; private final IntegerPublisher m_framePeriodPublisher; @@ -92,7 +92,7 @@ public class ExpansionHubServo implements AutoCloseable { * @param value Position from 0.0 to 1.0 (-1 to 1 in CR mode). */ public void set(double value) { - if (m_continousMode) { + if (m_continuousMode) { value = Math.clamp(value, -1.0, 1.0); value = (value + 1.0) / 2.0; } @@ -223,8 +223,8 @@ public class ExpansionHubServo implements AutoCloseable { * * @param enable True to enable continuous rotation mode, false to disable */ - public void setContinousRotationMode(boolean enable) { - m_continousMode = enable; + public void setContinuousRotationMode(boolean enable) { + m_continuousMode = enable; } /** Closes a servo so another instance can be constructed. */ diff --git a/wpilibj/src/main/java/org/wpilib/hardware/motor/PWMMotorController.java b/wpilibj/src/main/java/org/wpilib/hardware/motor/PWMMotorController.java index 190282e5fa..b74fb677cf 100644 --- a/wpilibj/src/main/java/org/wpilib/hardware/motor/PWMMotorController.java +++ b/wpilibj/src/main/java/org/wpilib/hardware/motor/PWMMotorController.java @@ -148,7 +148,7 @@ public abstract class PWMMotorController extends MotorSafety * @param maxPwm maximum * @param deadbandMaxPwm deadband max * @param centerPwm center - * @param deadbandMinPwm deadmand min + * @param deadbandMinPwm deadband min * @param minPwm minimum */ protected final void setBoundsMicroseconds( diff --git a/wpinet/src/main/native/include/wpi/net/MulticastServiceResolver.h b/wpinet/src/main/native/include/wpi/net/MulticastServiceResolver.h index c93d82f29b..80a195da07 100644 --- a/wpinet/src/main/native/include/wpi/net/MulticastServiceResolver.h +++ b/wpinet/src/main/native/include/wpi/net/MulticastServiceResolver.h @@ -40,7 +40,7 @@ class MulticastServiceResolver { /** * Set a copy callback to be called when a service is resolved. - * Takes presidence over the move callback. Return true to + * Takes precedence over the move callback. Return true to * not send the data to the event queue. */ bool SetCopyCallback(std::function callback); diff --git a/wpinet/src/test/python/test_wpinet.py b/wpinet/src/test/python/test_wpinet.py index 13a2855ea2..8c30339c17 100644 --- a/wpinet/src/test/python/test_wpinet.py +++ b/wpinet/src/test/python/test_wpinet.py @@ -1,5 +1,5 @@ import wpinet -def test_existance(): +def test_existence(): pass diff --git a/wpiutil/src/main/java/org/wpilib/util/struct/StructGenerator.java b/wpiutil/src/main/java/org/wpilib/util/struct/StructGenerator.java index d46005b4ea..177cdf4f27 100644 --- a/wpiutil/src/main/java/org/wpilib/util/struct/StructGenerator.java +++ b/wpiutil/src/main/java/org/wpilib/util/struct/StructGenerator.java @@ -111,7 +111,7 @@ public final class StructGenerator { * @param clazz The class of the type. * @param struct The struct to add. * @param override Whether to override an existing struct. An existing struct could mean the type - * already has a {@code struct} field and implemnts {@link StructSerializable} or that the + * already has a {@code struct} field and implements {@link StructSerializable} or that the * type is already in the custom struct map. */ public static void addCustomStruct(Class clazz, Struct struct, boolean override) {