motor control and communication code of electric_bend project