add motor.c to project.