  The ordinary-extraordinary (O-X) mode conversion is modeled with the aid of a
2D full-wave code in the Pegasus Toroidal Experiment as a function of the
launch angles. It is shown how the shape of the plasma density profile in front
of the antenna can significantly influence the mode conversion efficiency and,
thus, the generation of electron Bernstein waves (EBW). It is therefore
desirable to control the density profile in front of the antenna for successful
operation of an EBW heating and current drive system. On the other hand, the
conversion efficiency is shown to be resilient to vertical displacements of the
plasma as large as \pm 10 cm.
