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/lowpass filter #210

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Feature/lowpass filter #210

wants to merge 3 commits into from

Conversation

DimitryP6
Copy link

Changes

Added the simple_ema.h file and renamed branch

Notes

Alpha works well for 0.1

Test Cases

  • Case A
  • Edge case
  • ...

To Do

Any remaining things that need to get done

  • item 1
  • ...

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please reach out to your Project Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • [ *] All commits are tagged with the ticket number
  • [* ] No merge conflicts
  • [ *] All checks passing
  • [* ] Remove any non-applicable sections of this template
  • [* ] Assign the PR to yourself
  • [* ] Request reviewers & ping on Slack
  • [* ] PR is linked to the ticket (fill in the closes line below)

Closes #173

@DimitryP6 DimitryP6 requested a review from jr1221 December 2, 2024 00:05
@DimitryP6 DimitryP6 self-assigned this Dec 2, 2024
Copy link
Contributor

@jr1221 jr1221 left a comment

Choose a reason for hiding this comment

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

see comment

#define SIMPLE_EMA

// Exponential Moving Average Lowpass Filter
ema_filter(float current_value, float *previous_ema, float alpha);
Copy link
Contributor

Choose a reason for hiding this comment

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

needs void no?

A good way to ensure your code builds is to run it in Cerberus.
Steps to do so:

  1. Commit to ur branch in embedded base
  2. Clone Cerberus
  3. Enter the ./Drivers/Embedded-Base directory in Cerberus and run git fetch and git checkout <your-branch-name>
  4. Now update cerberus Makefile with the relevant .c file you want to test
  5. run ner build and observe any errors/warnings

Lmk if you have questions about these steps, if you need instructions to setup ner build check here

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.

Develop stable low pass filter algorithms for voltages and temperatures
2 participants