DSP program for the Surfboard hardware (PCB to be open sourced) http://www.avbotz.com/ourauv/electrical/signal-processing/

Dependencies:   MODDMA SimpleIOMacros mbed-dsp mbed

hydro_dsp.h

Committer:
avbotz
Date:
2013-08-02
Revision:
1:f69ec4c889ff
Parent:
0:2381a319fc35

File content as of revision 1:f69ec4c889ff:

#ifndef HYDRO_DSP_H__
#define HYDRO_DSP_H__

#include "dsp.h"

#define NUM_CHANNELS 6//
#define FILTER_ORDER 6
#define BLOCK_SIZE 512
#define TDOA_THRESH (32767 / 2)
//#define TDOA_MIN_NUM_HITS 2

void setup_dsp();
int find_timestamp_tdoa(q15_t* filtered);

extern arm_iir_lattice_instance_q15 iir_filter[NUM_CHANNELS];
extern q15_t filtered[BLOCK_SIZE];

#endif