Forum rules - please read before posting, it can save you a lot of time.
pe.Rotation1 = pe.Angle1-180; pe.Rotation2 = pe.Angle2-180;