Skip to content

Current sensing#11

Merged
changxu-liu merged 8 commits into
mainfrom
current_sensor_conversion
Jun 25, 2026
Merged

Current sensing#11
changxu-liu merged 8 commits into
mainfrom
current_sensor_conversion

Conversation

@changxu-liu

Copy link
Copy Markdown
Contributor

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a driver for the ACS3704x-010B3 current sensor and implements core current sensing functionality for the PDU Mk1, including offset collection and reading routines. Feedback highlights a critical naming inconsistency between the source and header files for the offset variable, which will cause linker errors. Other improvements suggested include correcting copy-pasted documentation, averaging multiple samples for more stable calibration, replacing hardcoded channel mapping with descriptive constants, and investigating a "magic delay" in the test code to resolve potential race conditions.

Comment thread firmware/PowerDistributionUnit_Mk1/core/inc/PDU_Mk1_Current_Sensing.h Outdated
Comment thread firmware/PowerDistributionUnit_Mk1/core/src/PDU_Mk1_Current_Sensing.c Outdated
Comment thread firmware/PowerDistributionUnit_Mk1/test/src/ACS_Current_Sensing.c
@changxu-liu changxu-liu self-assigned this May 13, 2026
Comment thread firmware/driver/inc/ACS3704x-010B3.h Outdated
Comment thread firmware/PowerDistributionUnit_Mk1/core/src/PDU_Mk1_CurrentSensing.c Outdated

@jolynjiang226 jolynjiang226 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

halo

@changxu-liu changxu-liu requested a review from jolynjiang226 May 17, 2026 20:33
@changxu-liu changxu-liu force-pushed the current_sensor_conversion branch from 6e67f9f to ff9b967 Compare June 22, 2026 04:27
@changxu-liu changxu-liu force-pushed the current_sensor_conversion branch from ff9b967 to cfd2729 Compare June 22, 2026 04:32
@changxu-liu changxu-liu merged commit 76af042 into main Jun 25, 2026
2 checks passed
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