Jonny999999 / armchair_fw

Firmware for a homemade automated electric armchair using an esp32 controller on a custom pcb
https://pfusch.zone/electric-armchair-v2
0 stars 0 forks source link

Optimize joystick calibration #27

Closed Jonny999999 closed 7 months ago

Jonny999999 commented 1 year ago

current situation

currently joystick min/max value of each axis is currently hardcoded in config only the jostick center position is auto-calibrated during startup.

issue

noticed that min/max adc values drift every other day... resulting in weird joystick behaivor e.g. radius never reaches 1 thus drives slow in certain direction

ideas

Jonny999999 commented 7 months ago

Added menu item for starting a sequence of instructions for calibrating the stick cdfa64fbc0ce674f330999a8413ca3cb5aed3f66 the values are also stored persistent in nvs