Skip to content

Add functions for single-sided FFT and Power calculations#2

Open
liy-hu wants to merge 11 commits intoagam/add_data_acquisition_corefrom
lisa_cmsis_sig_proc
Open

Add functions for single-sided FFT and Power calculations#2
liy-hu wants to merge 11 commits intoagam/add_data_acquisition_corefrom
lisa_cmsis_sig_proc

Conversation

@liy-hu
Copy link
Collaborator

@liy-hu liy-hu commented Feb 13, 2024

I added three functions to the ArmMatrixWrapper.h file this includes:
rawFFT()
singleSideFFT()
singleSidePower()

// memcpy(result.data, data, MaxBufferSize * sizeof(float32_t));
// return result;
// };
// Computes the raw FFT for specific channel given a number of samples
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also add a pretty print function? :)
I was going to add it to my branch, but I think it makes sense in this PR.
Something like:

printk("\nmatrix data:\n")
for (row in matrix.numRows) {
  for (col in matrix.numCols) {
    printk("%.4f\t", this.at(row,col))
  }
}
printk("\n")

@AgamAulakh AgamAulakh force-pushed the agam/add_data_acquisition_core branch from 65d8fb1 to 3690e97 Compare March 30, 2024 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants