Skip to content

# Class evam::AdaptiveSmoothDecor

template <class Motor, unsigned short kMinTimeConstantMs, unsigned short kMaxTimeConstantMs>

ClassList > evam > AdaptiveSmoothDecor

Decorator with adaptive smoothing based on input rate of change. More...

- `#include <evamAdaptiveSmoothDecor.h>`

Inherits the following classes: Heartbeat, Motor

## Public Functions

Type | Name
--- | ---
| AdaptiveSmoothDecor ()
void | Go (signed short aValue)

## Protected Functions

Type | Name
--- | ---
void | onHeartbeat () override

## Detailed Description

Automatically adjusts smoothing based on how fast the input is changing. Uses fixed time base from Heartbeat for consistent behavior.

Template parameters:

- `Motor` Base motor class (must implement Go(signed short))
- `kMinTimeConstantMs` Minimum time constant (fast response). Default: 10ms
- `kMaxTimeConstantMs` Maximum time constant (heavy smoothing). Default: 150ms

## Public Functions Documentation

### function AdaptiveSmoothDecor

    inline evam::AdaptiveSmoothDecor::AdaptiveSmoothDecor ()

### function Go

    inline void evam::AdaptiveSmoothDecor::Go (
        signed short aValue
    )

## Protected Functions Documentation

### function onHeartbeat

    inline void evam::AdaptiveSmoothDecor::onHeartbeat () override

The documentation for this class was generated from the following file `src/evamAdaptiveSmoothDecor.h`