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

Scaling, Smoothing and Controller package(s) #964

Open
gen2thomas opened this issue Jun 19, 2023 · 1 comment
Open

Scaling, Smoothing and Controller package(s) #964

gen2thomas opened this issue Jun 19, 2023 · 1 comment

Comments

@gen2thomas
Copy link
Collaborator

gen2thomas commented Jun 19, 2023

Currently we have 2 types of scaler implemented in gobot:

  • linear scaler
  • NTC scaler

The linear scaler exists multiple times:

  • utils.go (float64 to float64)
  • analog_actuator_driver.go (float64 to int)
  • analog_sensor_driver.go (int to float64)

Further scalers:

  • data point scaler (multiple X-Y points can be given, and a linear scaling is done from point to point)
  • ...

It would be nice to have a dedicated package or folder for data processing which can also contain a implementation for data smoothing (e.g. exponential smoothing).

Questions:

  • Should we introduce such a package folder in gobot?
  • Which name/hierarchy would be nice (e.g. dataprocessing/smooth , dataprocessing/scale)?
  • What about a controller package for the future (PID, bang–bang, double-setpoint etc.)?
@gen2thomas
Copy link
Collaborator Author

There is already a nice controller package: https://github.com/brandondube/pctl

It contains also some useful filters, so there is no need to reinventing the wheel for PID and smoothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant