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

Haptic Feedback #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Haptic Feedback #18

wants to merge 1 commit into from

Conversation

lukash
Copy link
Owner

@lukash lukash commented Sep 17, 2024

An alternative PR to #12. I believe this implementation is better structured and simpler.

The PR is not meant to be merged as-is, it's posted to allow for submitting feedback. It will be made available in a release as a feature preview and after gathering feedback on the feature we should reduce the number of config options.

}

static HapticFeedbackType state_to_haptic_type(const State *state) {
if (state->state != STATE_RUNNING) {
Copy link
Contributor

Choose a reason for hiding this comment

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

You're gonna want to check if state->mode == MODE_FLYWHEEL so duty cycle haptics don't happen in flywheel mode.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Duty SAT is not being set during Flywheel (and I tested it, it doesn't buzz for me). Not sure about the error ones right now. If they were:

  • you'd supposedly want to hear them
  • they'll most likely make the board fall over as they change the setpoint

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good. Only reason I mention is because it was in the original float package.

@lukash lukash force-pushed the feature/haptic-feedback branch from b568ec2 to d6b751f Compare September 18, 2024 07:31
Feature: Implement Haptic Feedback
@lukash lukash force-pushed the feature/haptic-feedback branch from 65298ce to d475f54 Compare October 20, 2024 10:21
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