From defe838ab01da8502de13d3c75e008624d1e675a Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 14 May 2024 13:14:10 +1000 Subject: Use LRA motors in an auto-calibrated closed-loop mode --- src/drivers/include/drivers/haptics.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/drivers/include') diff --git a/src/drivers/include/drivers/haptics.hpp b/src/drivers/include/drivers/haptics.hpp index 940c3c6d..a9384fa4 100644 --- a/src/drivers/include/drivers/haptics.hpp +++ b/src/drivers/include/drivers/haptics.hpp @@ -6,6 +6,7 @@ #pragma once +#include #include #include #include @@ -17,7 +18,8 @@ namespace drivers { typedef std::monostate ErmMotor; struct LraMotor { - // TODO: fill out with calibration data from https://www.ti.com/lit/ds/symlink/drv2605l.pdf + // TODO: fill out with calibration data from + // https://www.ti.com/lit/ds/symlink/drv2605l.pdf bool hi; }; @@ -321,6 +323,7 @@ class Haptics { auto PowerUp() -> void; auto WriteRegister(Register reg, uint8_t val) -> void; + auto ReadRegister(Register reg) -> uint8_t; auto SetWaveformEffect(Effect effect) -> void; auto Go() -> void; -- cgit v1.2.3