mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
Fix typos (#4839)
This commit is contained in:
@@ -93,7 +93,8 @@ class ADIS16470_IMU : public nt::NTSendable,
|
||||
CalibrationTime cal_time);
|
||||
|
||||
/**
|
||||
* @brief Destructor. Kills the acquisiton loop and closes the SPI peripheral.
|
||||
* @brief Destructor. Kills the acquisition loop and closes the SPI
|
||||
* peripheral.
|
||||
*/
|
||||
~ADIS16470_IMU() override;
|
||||
|
||||
|
||||
@@ -82,7 +82,8 @@ class AsynchronousInterrupt {
|
||||
* @param source the DigitalSource the interrupts are triggered from
|
||||
* @param f the callback function to call when the interrupt is triggered
|
||||
* @param arg the first argument, interrupt was triggered on rising edge
|
||||
* @param args the remaing arguments, interrupt was triggered on falling edge
|
||||
* @param args the remaining arguments, interrupt was triggered on falling
|
||||
* edge
|
||||
*/
|
||||
template <typename Callable, typename Arg, typename... Args>
|
||||
AsynchronousInterrupt(DigitalSource& source, Callable&& f, Arg&& arg,
|
||||
@@ -99,7 +100,8 @@ class AsynchronousInterrupt {
|
||||
* @param source the DigitalSource the interrupts are triggered from
|
||||
* @param f the callback function to call when the interrupt is triggered
|
||||
* @param arg the first argument, interrupt was triggered on rising edge
|
||||
* @param args the remaing arguments, interrupt was triggered on falling edge
|
||||
* @param args the remaining arguments, interrupt was triggered on falling
|
||||
* edge
|
||||
*/
|
||||
template <typename Callable, typename Arg, typename... Args>
|
||||
AsynchronousInterrupt(DigitalSource* source, Callable&& f, Arg&& arg,
|
||||
@@ -116,7 +118,8 @@ class AsynchronousInterrupt {
|
||||
* @param source the DigitalSource the interrupts are triggered from
|
||||
* @param f the callback function to call when the interrupt is triggered
|
||||
* @param arg the first argument, interrupt was triggered on rising edge
|
||||
* @param args the remaing arguments, interrupt was triggered on falling edge
|
||||
* @param args the remaining arguments, interrupt was triggered on falling
|
||||
* edge
|
||||
*/
|
||||
template <typename Callable, typename Arg, typename... Args>
|
||||
AsynchronousInterrupt(std::shared_ptr<DigitalSource> source, Callable&& f,
|
||||
|
||||
@@ -65,7 +65,7 @@ class SynchronousInterrupt {
|
||||
*
|
||||
* @param timeout The timeout to wait for. 0s or less will return immediately.
|
||||
* @param ignorePrevious True to ignore any previous interrupts, false to
|
||||
* return interrupt value if an interrupt has occured since last call.
|
||||
* return interrupt value if an interrupt has occurred since last call.
|
||||
* @return The edge(s) that were triggered, or timeout.
|
||||
*/
|
||||
WaitResult WaitForInterrupt(units::second_t timeout,
|
||||
|
||||
@@ -783,7 +783,7 @@ class Color {
|
||||
// Difference between highest and lowest value of any rgb component
|
||||
int chroma = (s * v) >> 8;
|
||||
|
||||
// Beacuse hue is 0-180 rather than 0-360 use 30 not 60
|
||||
// Because hue is 0-180 rather than 0-360 use 30 not 60
|
||||
int region = (h / 30) % 6;
|
||||
|
||||
// Remainder converted from 0-30 to 0-255
|
||||
|
||||
Reference in New Issue
Block a user