This commit is contained in:
sciencewhiz
2022-12-21 06:53:00 -08:00
committed by GitHub
parent dd8ecfdd54
commit d20594db0d
20 changed files with 30 additions and 25 deletions

View File

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

View File

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

View File

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

View File

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