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

Feature/bldc haptics #60

Merged
merged 31 commits into from
Jun 3, 2023
Merged

Feature/bldc haptics #60

merged 31 commits into from
Jun 3, 2023

Commits on May 25, 2023

  1. feat(bldc_haptics): initial bldc_haptics component

    * Added bldc_haptics component which templates on a motor concept (works with bldc_motor right now) - copied with modifications from smartknob as initial implementation.
    * Added bldc_haptics_example to showcase new component.
    finger563 committed May 25, 2023
    Configuration menu
    Copy the full SHA
    3522aef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    04aa8ab View commit details
    Browse the repository at this point in the history

Commits on May 26, 2023

  1. feat(pid): udpate API

    * Updated PID config api to allow user to specify whether they want to clear the state or not (default true)
    * Added `set_config` api to mirror `get_config`
    finger563 committed May 26, 2023
    Configuration menu
    Copy the full SHA
    e6ee866 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1c18925 View commit details
    Browse the repository at this point in the history
  3. doc: update

    * Updated docs to include bldc haptics info
    * Updated bldc_haptics comments for more complete docs and remove unused code
    * Updated bldc_motor to point to example usage (was missing)
    finger563 committed May 26, 2023
    Configuration menu
    Copy the full SHA
    ae25fb9 View commit details
    Browse the repository at this point in the history
  4. ci: update

    finger563 committed May 26, 2023
    Configuration menu
    Copy the full SHA
    f66034f View commit details
    Browse the repository at this point in the history
  5. removed unneeded file

    finger563 committed May 26, 2023
    Configuration menu
    Copy the full SHA
    f47e192 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2023

  1. feat(bldc_driver): add fault

    * Added fault pin (optional) to bldc_driver as an input with associated API
    * Added mutex to protect en / fault pins (and check values before setting enable)
    finger563 committed May 27, 2023
    Configuration menu
    Copy the full SHA
    208ddcf View commit details
    Browse the repository at this point in the history
  2. feat(bldc_motor): update example

    * Update bldc_motor example to use config for tinyS3 test stand (works!)
    * Update bldc_motor example to quit if the driver reports a fault
    * Update bldc_driver to configure the fault pin as pull-down (since fault is high) to prevent always triggering fault condition
    finger563 committed May 27, 2023
    Configuration menu
    Copy the full SHA
    a76c066 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cdd3bd9 View commit details
    Browse the repository at this point in the history
  4. example(bldc_haptics): update

    * Update bldc_haptics example to use fault pin on motor driver and exit if the driver goes into fault condition
    finger563 committed May 27, 2023
    Configuration menu
    Copy the full SHA
    550a203 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2023

  1. feat(bldc_haptics): allow pid config

    * Allow the kp/kd factors to be configured in the BldcHaptics::Config struct
    * Fix potential bug from smartknob project where min/max (lower/upper) kd factors were inverted
    finger563 committed May 29, 2023
    Configuration menu
    Copy the full SHA
    dde3d42 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2023

  1. feat(bldc_motor): refactor types

    * Moved non-templated types into their own header files (now inside espp::detail namespace) and updated example accordingly
    finger563 committed May 31, 2023
    Configuration menu
    Copy the full SHA
    abfe080 View commit details
    Browse the repository at this point in the history
  2. feat(bldc_haptics): updated interface

    * Allow configuring the pid gain factors for detents of BldcHaptics
    * Update to use new espp::detail namespace for types in BldcMotor
    * Set motor to Torque control in BldcHaptics
    * Add motion control config api to concept requirement in BldcHaptics
    * Tuning the gain factors for the detent pid
    * Added another detent config (on/off)
    * Updated return to center detent config to have position width properly set
    finger563 committed May 31, 2023
    Configuration menu
    Copy the full SHA
    59e8acf View commit details
    Browse the repository at this point in the history
  3. doc(rtsp): update

    * Added missing parameter documentation to rtsp method
    finger563 committed May 31, 2023
    Configuration menu
    Copy the full SHA
    4ec09be View commit details
    Browse the repository at this point in the history
  4. doc(ftp): update

    * Added missing parameter documentation
    * Send multiline response as multiline response (multiline=true) for FEAT
    finger563 committed May 31, 2023
    Configuration menu
    Copy the full SHA
    a56542a View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2023

  1. feat(bldc_haptics): updated haptics

    * Updated example to better indicate what config it is running (print it out completely)
    * Updated detent config to support libfmt printing
    * Added equality operator for detentconfig
    * Removed integrator for detent pid and increased output min/max
    * Updated gains for feeling of detents
    finger563 committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    65f3ff7 View commit details
    Browse the repository at this point in the history
  2. doc

    finger563 committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    d5f41ca View commit details
    Browse the repository at this point in the history
  3. doc: update

    finger563 committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    671d80f View commit details
    Browse the repository at this point in the history
  4. doc: rebuild

    finger563 committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    682ca04 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2023

  1. feat(haptics): update api

    * Remove integrator from detent PID
    * Add example for playing haptics to doc
    * Add API for getting current position from the haptics (for input)
    finger563 committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    e162a78 View commit details
    Browse the repository at this point in the history
  2. example(haptics): update

    * Update pid config for haptics
    * Shorten example
    * Run the haptic click / buzz test and add it to docs
    finger563 committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    b52a513 View commit details
    Browse the repository at this point in the history
  3. update to use new logger

    finger563 committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    114392e View commit details
    Browse the repository at this point in the history
  4. merge main

    finger563 committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    1e1d2c3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a874795 View commit details
    Browse the repository at this point in the history
  6. feat(bldc_haptics): better behavior

    * Run the loop_foc after calling the move command, instead of after the sleep like a dumbass.
    * Update logger to print higher precision
    finger563 committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    58c45bb View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2023

  1. feat(bldc_motor): minor update

    * Add phase inductance parameter to bldc_motor (not tested)
    * Update bldc_motor example to use motor for printing sensor data
    * Update bldc_motor example to have proper zero electrical angle for motor on new test stand.
    * Update bldc_motor example for less clamping
    finger563 committed Jun 3, 2023
    Configuration menu
    Copy the full SHA
    ffaaad5 View commit details
    Browse the repository at this point in the history
  2. feat(bldc_haptics): working haptics example

    * updated haptics example to have correct zero electrical offset for this motor on this test stand
    * updated haptics example to have higher current limit
    * Updated to show more of the possible preconfigured detent configs and print them more cleanly
    * Updated bldc_haptics output min/max to be same as velocity pid was since they both operate on current
    * Updated logging for bldc_haptics
    * Updated how position is updated when changing detent configuration
    * Updated use of kd_factor_min/max to match how smartknob did it
    * Properly send the torque to the motor (not the negative torque)
    * Updated libfmt printing of DetentConfig structs
    finger563 committed Jun 3, 2023
    Configuration menu
    Copy the full SHA
    b71ab12 View commit details
    Browse the repository at this point in the history
  3. doc: rebuild

    finger563 committed Jun 3, 2023
    Configuration menu
    Copy the full SHA
    8fb55f1 View commit details
    Browse the repository at this point in the history
  4. feat(bldc_haptics): update example

    * Update gains in example
    * Update default gains
    finger563 committed Jun 3, 2023
    Configuration menu
    Copy the full SHA
    886d5e3 View commit details
    Browse the repository at this point in the history
  5. doc: rebuild

    finger563 committed Jun 3, 2023
    Configuration menu
    Copy the full SHA
    e3beb88 View commit details
    Browse the repository at this point in the history