Processor firmware for motor control/dynamics