Delete motor.c and sensor.c, add detector.c

Signed-off-by: yuzhongqiang <jy8yzq@163.com>