From 4319cd67b7a7ea233cef45c18845500362ddf19e Mon Sep 17 00:00:00 2001 From: qhdwight Date: Wed, 17 Apr 2024 21:25:18 -0400 Subject: [PATCH] Format --- src/perception/tag_detector/zed/pch.hpp | 1 - src/util/hardware_adc.hpp | 18 +++++++++--------- src/util/hardware_i2c.hpp | 4 ++-- src/util/params_utils.hpp | 1 - 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/perception/tag_detector/zed/pch.hpp b/src/perception/tag_detector/zed/pch.hpp index 7adb06d71..324b7c7a5 100644 --- a/src/perception/tag_detector/zed/pch.hpp +++ b/src/perception/tag_detector/zed/pch.hpp @@ -10,7 +10,6 @@ #include #include #include -#include #include #include diff --git a/src/util/hardware_adc.hpp b/src/util/hardware_adc.hpp index c8757d891..39c3d82a8 100644 --- a/src/util/hardware_adc.hpp +++ b/src/util/hardware_adc.hpp @@ -26,14 +26,14 @@ namespace mrover { return m_values.at(channel); } - void update() { - HAL_ADC_Start_DMA(m_hadc, reinterpret_cast(m_values.data()), m_channels); - } - - private: - ADC_HandleTypeDef* m_hadc; - uint8_t m_channels; - std::vector m_values; - }; + void update() { + HAL_ADC_Start_DMA(m_hadc, reinterpret_cast(m_values.data()), m_channels); + } + + private: + ADC_HandleTypeDef* m_hadc; + uint8_t m_channels; + std::vector m_values; + }; } // namespace mrover diff --git a/src/util/hardware_i2c.hpp b/src/util/hardware_i2c.hpp index 10cd9d383..af1a57945 100644 --- a/src/util/hardware_i2c.hpp +++ b/src/util/hardware_i2c.hpp @@ -39,8 +39,8 @@ namespace mrover { // TODO(quintin): Error handling? Shouldn't this return an optional if (TReceive receive{}; HAL_I2C_Master_Receive(m_i2c, address << 1 | 1, address_of(receive), sizeof(receive), I2C_TIMEOUT) != HAL_OK) { return std::nullopt; - } else{ - return receive; + } else { + return receive; } } diff --git a/src/util/params_utils.hpp b/src/util/params_utils.hpp index d4ea6ec48..2a3911fe4 100644 --- a/src/util/params_utils.hpp +++ b/src/util/params_utils.hpp @@ -7,7 +7,6 @@ #include #include -#include #include #include