In the future, I would recommend placing each individual new feature in it's own pull request (eg, separate commits, separate branches).
I'm pretty sure the accelerometer code isn't going to work at all. And your switch code is going to raise the forklift multiple times while the switches are pressed.
It shouldn't raise it multiple times, because self.autolift is false until both limit switches aren't pressed
In the future, I would recommend placing each individual new feature in it's own pull request (eg, separate commits, separate branches).
I'm pretty sure the accelerometer code isn't going to work at all. And your switch code is going to raise the forklift multiple times while the switches are pressed.
It shouldn't raise it multiple times, because self.autolift is false until both limit switches aren't pressed