Abstract Permutation polynomials in finite fields are initially introduced into the design of full frequency hop codes. Various kinds of full frequency hop codes with ideal au-to-and cross-ambiguity functions are presented in this paper. For example, the codes of class 2 are the best full frequency hop codes up to now.