jmarkwolf
Junior Member level 3
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?
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?