May 4, 2012 #1 J jmarkwolf Junior Member level 3 Joined Feb 13, 2007 Messages 29 Helped 1 Reputation 2 Reaction score 0 Trophy points 1,281 Activity points 1,503 I'm employing a Sin, Cos, Atan2 construct to "average" a group of phase angle integers. The equation works in Excel, but is generating a grossly incorrect result in the DsPic C30 compiler. Tried using the "Q16" tricks from Microchip. I'm stuck, Anybody have an example how to do this?
I'm employing a Sin, Cos, Atan2 construct to "average" a group of phase angle integers. The equation works in Excel, but is generating a grossly incorrect result in the DsPic C30 compiler. Tried using the "Q16" tricks from Microchip. I'm stuck, Anybody have an example how to do this?