clean up + Add utilities to the system.c/.h

+Fix filter
This commit is contained in:
cnlohr 2015-07-22 09:12:21 -04:00
parent 560db48adf
commit f1a75267fb
10 changed files with 150 additions and 72 deletions

View file

@ -34,7 +34,7 @@ void GotSample( int samp )
//Call this once we've stacked together one full colorchord frame.
void NewFrame()
{
uint8_t led_outs[NUM_LIN_LEDS*3];
// uint8_t led_outs[NUM_LIN_LEDS*3];
int i;
HandleFrameInfo();
UpdateLinearLEDs();

View file

@ -22,7 +22,7 @@ void InitMP45DT02()
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_CRC, ENABLE);
#ifdef ST_PDM
pdm_filter.LP_HZ=DFREQ/2;
pdm_filter.LP_HZ=DFREQ*2; //??? This is wrong, but if I make it lower, it really cuts into my bandwidth.
pdm_filter.HP_HZ=20;
pdm_filter.Fs=FS;
pdm_filter.Out_MicChannels=1;