Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
qhdwight committed Apr 18, 2024
1 parent aa933ab commit 4319cd6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/perception/tag_detector/zed/pch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <numeric>
#include <optional>
#include <string>
#include <format>
#include <type_traits>
#include <unordered_map>

Expand Down
18 changes: 9 additions & 9 deletions src/util/hardware_adc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ namespace mrover {
return m_values.at(channel);
}

void update() {
HAL_ADC_Start_DMA(m_hadc, reinterpret_cast<uint32_t*>(m_values.data()), m_channels);
}

private:
ADC_HandleTypeDef* m_hadc;
uint8_t m_channels;
std::vector<uint32_t> m_values;
};
void update() {
HAL_ADC_Start_DMA(m_hadc, reinterpret_cast<uint32_t*>(m_values.data()), m_channels);
}

private:
ADC_HandleTypeDef* m_hadc;
uint8_t m_channels;
std::vector<uint32_t> m_values;
};

} // namespace mrover
4 changes: 2 additions & 2 deletions src/util/hardware_i2c.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::uint8_t>(receive), sizeof(receive), I2C_TIMEOUT) != HAL_OK) {
return std::nullopt;
} else{
return receive;
} else {
return receive;
}
}

Expand Down
1 change: 0 additions & 1 deletion src/util/params_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <stdexcept>
#include <string>

#include <ros/node_handle.h>
#include <XmlRpcValue.h>
#include <ros/node_handle.h>

Expand Down

0 comments on commit 4319cd6

Please sign in to comment.