diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-05-14 13:14:10 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-05-14 13:14:10 +1000 |
| commit | defe838ab01da8502de13d3c75e008624d1e675a (patch) | |
| tree | 96ffff103d1a55659e9a689718e058bf50c685b3 /src/drivers/include | |
| parent | f991ac9866bb389f8bb192452bf8b2e092f2388d (diff) | |
| download | tangara-fw-defe838ab01da8502de13d3c75e008624d1e675a.tar.gz | |
Use LRA motors in an auto-calibrated closed-loop mode
Diffstat (limited to 'src/drivers/include')
| -rw-r--r-- | src/drivers/include/drivers/haptics.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
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 <stdint.h> #include <cstdint> #include <initializer_list> #include <mutex> @@ -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; |
