You would use an accelerometer.
Also, I suggest you fit a manual mechanical lock that prevents the legs from extending until you have released the lock - for example, a pin that mechanically holds the leg in its parked position.
You would use an accelerometer.
Also, I suggest you fit a manual mechanical lock that prevents the legs from extending until you have released the lock - for example, a pin that mechanically holds the leg in its parked position.