GO:0016401: palmitoyl-CoA oxidase activity
Catalysis of the reaction: palmitoyl-CoA + O2 = trans-2,3-dehydropalmitoyl-CoA + hydrogen peroxide.