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

PAC195X #51

Merged
merged 25 commits into from
Jun 4, 2024
Merged

PAC195X #51

merged 25 commits into from
Jun 4, 2024

Commits on May 22, 2024

  1. Configuration menu
    Copy the full SHA
    207fced View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c03d0a6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a7bf57d View commit details
    Browse the repository at this point in the history
  4. Implement the read byte protocol and update current functions to make…

    … use of it where applicable.
    linguini1 committed May 22, 2024
    Configuration menu
    Copy the full SHA
    b7298cc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3488e92 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. Implemented block read protocol and fixed bug where REVISION_ID regis…

    …ter was 0xFE instead of 0xFF.
    linguini1 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    99edac6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5ba7442 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dcc2c59 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    03fa8cf View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a4eb96d View commit details
    Browse the repository at this point in the history
  6. Implement reading VSENSE. The 152-2 model only has VSENSE1 and VSENSE…

    …2 channels. Also fixed bug in block write DCMD selection.
    linguini1 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    1cc5111 View commit details
    Browse the repository at this point in the history
  7. Implemented functions to read VBUS and VSENSE channels. It seems that…

    … after each read, a refresh command must be sent to get new data.
    linguini1 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    dc90ea8 View commit details
    Browse the repository at this point in the history
  8. Implemented power and average value reading, but power measurements d…

    …o not seem to equal vbus * vsense.
    linguini1 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    2c2e74c View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. Added function to get accumulator for the channel. Attributing weird …

    …Vpower measurements to explanation in the datasheet: product is taken using signed numbers for vbus and vsense and chip uses more bits than the reported vbus and vsense values.
    linguini1 committed May 24, 2024
    Configuration menu
    Copy the full SHA
    19d3f8a View commit details
    Browse the repository at this point in the history
  2. Fix byte ordering problem when block reading for 2 byte values. Will …

    …need to fix this for other block reads as well. This correctly yields the bus values now.
    linguini1 committed May 24, 2024
    Configuration menu
    Copy the full SHA
    07e4a26 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5ac27a7 View commit details
    Browse the repository at this point in the history
  4. Implemented current calculation. Maybe getting correct values? Pretty…

    … sure our Rsense resistors are 0 ohms, so I'm keeping full scale current at 100mV. Not sure how much current to look for.
    linguini1 committed May 24, 2024
    Configuration menu
    Copy the full SHA
    e8599d4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8a4b513 View commit details
    Browse the repository at this point in the history
  6. Current may be incorrect because there is no current draw from USB po…

    …wer during time of testing. Must test again with battery connected.
    linguini1 committed May 24, 2024
    Configuration menu
    Copy the full SHA
    3cc20e9 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2024

  1. Configuration menu
    Copy the full SHA
    a3a8fcc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f1a57ce View commit details
    Browse the repository at this point in the history
  3. Add docstring to define.

    linguini1 committed Jun 2, 2024
    Configuration menu
    Copy the full SHA
    3f7bb11 View commit details
    Browse the repository at this point in the history
  4. Remove unneeded statics.

    linguini1 committed Jun 2, 2024
    Configuration menu
    Copy the full SHA
    2f92614 View commit details
    Browse the repository at this point in the history
  5. Add power calculation.

    linguini1 committed Jun 2, 2024
    Configuration menu
    Copy the full SHA
    5a1f994 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2024

  1. Implemented measurements that have IDs because they are localize meas…

    …urements (i.e. it matters which sensor took them).
    linguini1 committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    cc1bf2e View commit details
    Browse the repository at this point in the history