Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

benkroop
Copy link
Contributor

Adding an ina219 driver and a current sensing BQ.

@benkroop benkroop force-pushed the feature/ina219_driver branch from 2aa71e0 to 73ce55a Compare April 28, 2019 02:03
@benkroop benkroop force-pushed the feature/ina219_driver branch from 73ce55a to 49c0836 Compare April 28, 2019 02:07
static DriverConfiguration make_32V_1A();
static DriverConfiguration make_16V_400mA();

uint32_t current_divider_mA{0};
Copy link
Member

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>
Copy link
Member

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"
Copy link
Member

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;
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants