Embedded Implementation of a Real-time Switching Controller on a Robotic Arm