rewrite motorcontrol class for L6482