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

[Electron] Power management #1412

Merged
merged 9 commits into from Nov 6, 2017

Commits on Oct 23, 2017

  1. PMIC changes:

    - Implements getInputCurrentLimit()
    - Adds getChargeVoltageValue() returning voltage
    - Adds getRechargeThreshold()/setRechargeThreshold()
    avtolstoy committed Oct 23, 2017
    Copy the full SHA
    29a545d View commit details
    Browse the repository at this point in the history
  2. Implements FuelGauge::getNormalizedSoC() returning normalized state of

    charge value based on termination voltage (upper bound) and 20% of
    physcial charge (lower bound).
    avtolstoy committed Oct 23, 2017
    Copy the full SHA
    ce24d9e View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    8aab9cb View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    a3ba9a4 View commit details
    Browse the repository at this point in the history
  5. battery_state_t and power_source_t changes:

    - Adds DISCONNECTED state to battery_state_t
    - Adds power_source_t definition
    - Adds particle::SimpleEnumDiagnosticData<particle::power::power_source_t> diagnostic source
    avtolstoy committed Oct 23, 2017
    Copy the full SHA
    a9bad82 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    9f15482 View commit details
    Browse the repository at this point in the history
  7. Moved power management implementation into PowerManager class

    - Fixes DISCONNECTED battery state detection
    - Adds DIAG_ID_SYSTEM_POWER_SOURCE diagnostic source implementation
    avtolstoy committed Oct 23, 2017
    Copy the full SHA
    b26ad7d View commit details
    Browse the repository at this point in the history
  8. system_power_management_update() no longer needs to be called from Sp…

    …ark_Idle_Events or listening mode event loop
    avtolstoy committed Oct 23, 2017
    Copy the full SHA
    2d4ccf3 View commit details
    Browse the repository at this point in the history
  9. Copy the full SHA
    95bf2b7 View commit details
    Browse the repository at this point in the history