code for testing motor outputs