I'm not a c-programmer, rather a guy who inherited a system that previously had an I/Q demodulation in a gate array, need to move it into c-code. I have 1024 sample buffer that was synchronously digitized with x4 clock, so samples are alternately +I, +Q, -I, -Q,....... Need a snippet of code that flips signs of alternate I's and Q's so they are all positive, then sums the I's and Q's. I know this is trivial for a c-programmer, but not so for a non-programmer. Can anyone point me to an example, please?
petethepop
0
Newbie Poster
Recommended Answers
Jump to PostHow about using abs to get the absolute value? Perhaps post an attempt.
All 4 Replies
Dave Sinkula
2,398
long time no c
Team Colleague
petethepop
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
petethepop
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.