modm-io / modm

modm: a C++23 library generator for AVR and ARM Cortex-M devices
https://modm.io
Mozilla Public License 2.0
720 stars 128 forks source link

[driver] Add AS5600 driver + generalize data-type for external encoders #1166

Closed TomSaw closed 1 month ago

TomSaw commented 1 month ago

Driver for a small and cheap magnetic encoder.

First, i've generalized the angle data type of existing magnetic encoder driver as5047. 👉 A consequent follow up would be to integrate driver/encoder/angle.hpp with math/geometry/angle.hpp. F.e. by adding conversion constructors to math/geometry/angle.hpp and drop the redundant methods ::toRadian() and ::toDegree() in driver/encoder/angle.hpp. But we might also just keep it as it is.

What do you think?

TomSaw commented 1 month ago

Done @salkinium

TomSaw commented 1 month ago

Ready to merge I'd say...