There is a Washington State case where a person showed the officer failed to follow the rules of the road while monitoring and recording people's speed and because he was in fact in violation of the vehicle code and department rules the ticket was invalid, it was the fruit of the poison tree defense. The judge agreed and tossed the ticket.
In this case the officer was sitting on the side of the road with his lights off at night and not visible. The vehicle code stated that all cars are required to have their marker lights on when parked on the side of the highway at night, and the department rules stated that all officers are required to follow all the rules of road except in the case of an emergency Those two facts allow the person to win his case.
Now, if you think the same holds true for you, you might have a defense, however, you will first have to prove what he did was a violation of vehicle code and second he did not have any special privileges granted to him by the state or local government or department rules. Then the all important part, you get a judge who will agree with your understanding of the laws and say the officer can not issue tickets while himself was in violation of the laws.
I personally saw an officer drive in excess of the speed limits and then cars began to follow him and after a period of time the officer slowed down and pull over a number of cars behind him. Talk about breaking the law and then using it against people.