motor speed limits 0 and 0xFF set. Questions in comments re confusing code