mirror of
https://github.com/RfidResearchGroup/mayhem-firmware.git
synced 2026-05-12 11:27:21 -07:00
Touch: Expose metrics calculation struct/function.
This commit is contained in:
@@ -23,13 +23,7 @@
|
||||
|
||||
namespace touch {
|
||||
|
||||
struct Metrics {
|
||||
const float x;
|
||||
const float y;
|
||||
const float r;
|
||||
};
|
||||
|
||||
static Metrics calculate_metrics(const Frame& frame) {
|
||||
Metrics calculate_metrics(const Frame& frame) {
|
||||
/* TODO: Yikes! M0 doesn't have floating point, so this code is
|
||||
* expensive! On the other hand, it seems to be working well (and
|
||||
* fast *enough*?), so maybe leave it alone at least for now.
|
||||
|
||||
Reference in New Issue
Block a user