3 Commits

Author SHA1 Message Date
jonny_l480
6dfae934d5 Fix stack overflow, apply and restore fading [functional]
auto.cpp:
  apply fadeAccel and fadeDecel from commands to motors

main.cpp:
  double stack size of button task (crashed controller every time)

button.cpp:
 Modify test command to actually eject armchair leg support

control.cpp:
  apply generated motor commands to motors

rename some variables:
 typo: fadeAccel
 more specific: auto_instruction_t
2022-08-11 11:21:29 +02:00
jonny_ji7
24d89b96cc Add example command, Improvements
- automaticArmchair:
  - add method addCommands for adding an array of
    commands to queue
  - add keys to simpleCommand struct
    - fadeDecel (not used yet)
    - fadeAcel (not used yet)
    - instructions (new enum for running other commands in control task
      , not used yet)

- button.cpp
  - add example command to 1x button press (comment out previous cmd
    temporarily)

- control.cpp
  - update changeMode function: dont do anything when current mode is
    already target mode
2022-08-11 09:30:07 +02:00
jonny_ji7
f8415655c2 Create class 'automatedArmchair', Add AUTO mode
- Create class automatedArmchair in new files auto.hpp and auto.cpp
  This class currently makes it possible to queue up and run commands
  (motorstate, duty for certaion duration),

- add new file to cmakelists
- create automatedArmchair instance 'armchair' in config.cpp
- add loglevel configuration to main.cpp
- add AUTO mode to control.cpp (no way to change to mode yet)
2022-08-10 22:01:50 +02:00