Comparing c7e68b2...35428fb · esp-cpp/espp · GitHub
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: esp-cpp/espp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c7e68b2
Choose a base ref
...
head repository: esp-cpp/espp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 35428fb
Choose a head ref
  • 6 commits
  • 26 files changed
  • 3 contributors

Commits on Dec 11, 2025

  1. fix(AS5600): convert static variables to instance members (#571)

    * fix: convert static variables to instance members to enable supporting sampling multiple sensors
    
    Replace static variables `prev_count` and `prev_time` with instance
    member variables to support multiple AS5600 sensor instances running
    simultaneously. Previously, all instances would share the same static
    variables, causing incorrect position and velocity calculations in
    multi-sensor configurations.
    
    - Add `prev_count_` and `prev_time_` as class member variables
    - Initialize `prev_count_` to 0 and `prev_time_` to current time
    - Remove static keyword from variables in `update()` method
    - Ensures each sensor instance maintains independent state
    
    * fix(as5600): initialize prev_count_ to prevent incorrect first diff
    
    Initialize prev_count_ to the first sensor reading in init() to avoid
    calculating an incorrect diff on the first update() call. Previously,
    prev_count_ defaulted to 0 while count_ was set to the actual sensor
    reading, causing a large erroneous jump in the accumulator on startup.
    
    - Set prev_count_ = count after reading initial angle
    - Ensures diff calculation is correct from the first update
    - Prevents accumulator corruption on initialization
    
    * refactor(as5600): align implementation with MT6701 encoder
    
    - Replace std::chrono::high_resolution_clock with esp_timer_get_time()
    - Convert prev_time_ to uint64_t prev_time_us_ for microsecond precision
    - Store prev_count as local variable instead of class member
    
    * Fix (AS5600): Used read_counts() instead of non-existant read() method and cleaned the code.
    
    - Used read_counts() method instead of the wrongly used non-existed read() method
    - Removed unnecessary trailing white spaces
    rahgirrafi authored Dec 11, 2025
    Configuration menu
    Copy the full SHA
    c74c3d0 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2025

  1. feat(mt6701/as5600): Improve encoder interchangability and add suppor…

    …t for starting/stopping timer/task. Allow compile-time selection of task vs timer usage (#572)
    
    * feat(mt6701/as5600): Improve encoder interchangability and add support for starting/stopping timer/task. Allow compile-time selection of task vs timer usage
    
    * address comments
    
    * allow callers to configure task for as5600/mt6701 if using task instead of timer
    finger563 authored Dec 12, 2025
    Configuration menu
    Copy the full SHA
    186ef56 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2025

  1. Configuration menu
    Copy the full SHA
    2ab1550 View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2025

  1. doc(interrupt): Update interrupt filter configuration to indicate tha…

    …t enabling pin filtering prevents light sleep (#575)
    finger563 authored Dec 17, 2025
    Configuration menu
    Copy the full SHA
    79ef310 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2025

  1. Configuration menu
    Copy the full SHA
    e19da2c View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2025

  1. feat(m5tab5): Add support for querying and automatically determining …

    …the appropriate display driver closes #573 (#576)
    
    * feat(m5tab5): Add support for querying and automatically determining the appropriate display driver
    closes #573
    
    * updated with fixes and improvements from @CarbonNeuron (thanks!)
    
    * updated st7123 display driver
    
    * minor update
    finger563 authored Dec 19, 2025
    Configuration menu
    Copy the full SHA
    35428fb View commit details
    Browse the repository at this point in the history
Loading