a multi-threaded RTOS application to control a two-wheeled mobile robot