Set speed by controlling position of pulley of variable transmission