Fix Generic State-Machine: Behaviour with multiple instances of same Component (#1203)
The former implementation of State-Machines, using enum s with StateHandler s being defined directly at construction time, lead to static StateHandler s that were shared by all instances of the same Component. This could cause unpredictable behaviour.
This commit fixes this by providing a local instance of each StateHandler for each instance of a Component.
before this fix, if no ‘alias’ was provided in the component install dialog, it would create an alias with the string “null”.
Fix PID Filter: increase limit factor for error sum from 2 to 10.
On very low P, I or D factors, the error sum can become quite big before the target is reached. We still need to limit it at some point to avoid it becoming too much. Tests showed that a factor of 10 is a good compromise.