Struct OpenSkyhawk::AngleConfig
ClassList > OpenSkyhawk > AngleConfig
Tuning for an AngleSensorInput — theAnalogConfig fields that still mean something once the raw window comes from the centre and travel (#295). Set by name:{ .hysteresis = 512 } . Fields are only ever appended, each with a default.More...
#include <AngleSensorInput.h>
Public Attributes
| Type | Name |
|---|---|
| uint8_t | ewmaShift = [**AnalogConfig::DEFAULT\_EWMA\_SHIFT**](structOpenSkyhawk_1_1AnalogConfig.md#variable-default_ewma_shift)EWMA smoothing strength: α = 1/2^ewmaShift (capped to AnalogConfig::MAX_EWMA_SHIFT ). |
| uint16_t | hysteresis = [**AnalogConfig::HYSTERESIS\_AUTO**](structOpenSkyhawk_1_1AnalogConfig.md#variable-hysteresis_auto) |
| uint16_t | pollMs = [**AnalogConfig::DEFAULT\_POLL\_MS**](structOpenSkyhawk_1_1AnalogConfig.md#variable-default_poll_ms) |
Detailed Description
There is no reverse here: flip direction with the sensor's DIR pin.
Public Attributes Documentation
variable ewmaShift
EWMA smoothing strength: α = 1/2^ewmaShift (capped to AnalogConfig::MAX_EWMA_SHIFT ).
uint8_t OpenSkyhawk::AngleConfig::ewmaShift;
variable hysteresis
uint16_t OpenSkyhawk::AngleConfig::hysteresis;
Output counts of movement before a new value is emitted. HYSTERESIS_AUTO picks by route, like AnalogInput: DCS_HYSTERESIS for DCSIN_*, HID_HYSTERESIS for CTRL_*.
variable pollMs
uint16_t OpenSkyhawk::AngleConfig::pollMs;
Min interval between ADC reads, ms. Per instance; an ADS1115 PinRef blocks ~8 ms per conversion regardless.
The documentation for this class was generated from the following file Firmware/Libraries/PanelGroup/Inputs/AngleSensorInput/AngleSensorInput.h