-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding current sensor driver + BQ #121
base: master
Are you sure you want to change the base?
Conversation
2aa71e0
to
73ce55a
Compare
73ce55a
to
49c0836
Compare
static DriverConfiguration make_32V_1A(); | ||
static DriverConfiguration make_16V_400mA(); | ||
|
||
uint32_t current_divider_mA{0}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's up with these guys?
|
||
#include "infrastructure/comms/schemas/message.hh" | ||
|
||
#include <string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like an unuse dinclude
@@ -0,0 +1 @@ | |||
#include "power_reading.hh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused file
/// @param reg - ID of the register to write to | ||
/// @param value - The value to write | ||
/// @return Returns true on success, false on failure | ||
[[nodiscard]] bool write_register(Register reg, uint16_t value) const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider returning an optional instead of an output argument + bool
Adding an ina219 driver and a current sensing BQ.