Design and Implementation of a Real-Time Controller for a 3-Wheeled Collapsible Vehicle