Updated the dc motor ops to use direction instead of polarity to set the motor rotation