esp-cpp / espp

C++ components for ESP
https://esp-cpp.github.io/espp/
MIT License
28 stars 9 forks source link

feat(math): Refactor `espp::RangeMapper<>` to have center deadband and range deadband and remove invert-input. Similar update to `espp::Joystick`. Fixed bug in `espp::Joystick` which introduced non-linearity when configured as a `CIRCULAR` joystick. #261

Closed finger563 closed 2 weeks ago

finger563 commented 2 weeks ago

Description

Motivation and Context

How has this been tested?

Building and running the math/example on a QtPy ESP32S3 and plotting the results.

Screenshots (if appropriate, e.g. schematic, board, console logs, lab pictures):

CleanShot 2024-06-20 at 10 30 39

CleanShot 2024-06-20 at 10 30 26

range_mapper_test.txt range_mapper_test.xlsx

Joystick

CleanShot 2024-06-20 at 12 01 53

joystick_test.xlsx joystick_test.txt

Types of changes

Checklist:

Software

github-actions[bot] commented 2 weeks ago

:white_check_mark:Static analysis result - no issues found! :white_check_mark: