motor output header and c file