mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-13 19:56:40 +00:00
Touch: Expose metrics calculation struct/function.
This commit is contained in:
@@ -106,6 +106,14 @@ struct Frame {
|
||||
bool touch { false };
|
||||
};
|
||||
|
||||
struct Metrics {
|
||||
const float x;
|
||||
const float y;
|
||||
const float r;
|
||||
};
|
||||
|
||||
Metrics calculate_metrics(const Frame& frame);
|
||||
|
||||
template<size_t N>
|
||||
class Filter {
|
||||
public:
|
||||
|
Reference in New Issue
Block a user