I'm trying to write an equation of a complexfraction32 which is 32bit.
I would like to test for 20% of the value for less than 20% and more than 20%
I have a function mult_fr1x32x32 which
multiplies the complex fraction by a number. but complex fraction is from -1,1. How would I write the equation correctly.
if( (GO_coil_H[0].re*0.8f) < (CoilEepromData.coilboardhspule.reFundamental) && (CoilEepromData.coilboardhspule.reFundamental) <= (GO_coil_H[0].re)*1.2f)
{
// do something
}
extern volatile complex_fract32 GO_coil_H[DSP_NUM_FREQ];
unsigned int CoilEepromData.coilboardhspule.reFundamental