AUTOMATIC DYNAMIC MOTION CONTROL OF HOSPITAL BED SYSTEM