Mobile Robot Obstacle Avoidance and Path Planning and Ball Collection Source Code (DSP Embedded C)