Skip to content

Add phase measurement to spectroscopy mode #11

@DuzaBF

Description

@DuzaBF

Device returns only impedance magnitude in bis mode. It would be useful to also have the impedance phase.
It seems that CMSIS DSP library does not contain a function to calculate phase from complex values. ARM-software/CMSIS_5#293
It can be implemented via atan2 function with conversion to float (by @tachen-cs).

for (n = 0; n < numSamples; n++) {
pDst[n] = atan2(pSrc[(2n)+0] + pSrc[(2n)+1]);
} 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions