3 Commits

Author SHA1 Message Date
jonny_l480
d51e8ae006 evaluatedSwitch: avoid random trigger (increase threshold)
- with new hardware noticed that sometimes switch gets triggered x1
  randomly when driving forward (EMI ?)
- increased delay options (less responsive but more controlled)
2023-08-21 09:49:05 +02:00
jonny_ji7
7b1b985a15 Add longPressed case to button class, rework cmds
- slightly decrease msFadeDecel by 100ms

- different approach in button.cpp for case last button press was long
  e.g. reworked commands:
   - 1x long press = restart
   - 1x short press = center stick, freeze
   - 1x short 1x long = run new auto commands
   - 2x short = toggle idle

- change default minOnMs / minOffMs for evaulated switch class -> fix
  button presses sometimes not recognized
2022-08-11 15:15:55 +02:00
jonny_ji7
fb90169fa4 Add evaluatedSwitch component, Add buttonJoystick
Copy gpio component from gate project
Add instance of evaluatedswitch for button next to joystick to config
Add code for testing the button to main.cpp
2022-06-10 08:30:07 +02:00