Permalink
Browse files

Updated comments in main.c to reflect most recent development (3 months

ago..)
  • Loading branch information...
1 parent f565ddd commit b1d1fcc2f5c2d4c197b2b0fc4899abf1e93ed6f4 Ben committed Jun 5, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 Firmware/PIC32/main.c
View
@@ -8,11 +8,12 @@
* 12/10/2011 v0.2 First working version
* 01/16/2012 v0.3 Added SSB/CW and auto filter select
* 01/22/2012 v0.4 Fixed swapped USB/LSB selection in demodulation code and fixed gain
+* 03/08/2012 v0.5 Added selection of window functions; added CPU usage meter for testing
*
* TODO
* X1) Other modes of operation -- USB/LSB/CW to start with
* X2) Default filter bandwidths on a per-mode basis
-* 3) Different window functions
+* X3) Different window functions
* 4) Automatic Gain Control (AGC)
* 5) USB support (sound card + control interface?)
*
@@ -101,8 +102,8 @@ int main(void) {
//Zero out all the signal processing data buffers
int i;
for (i=0; i<Nn; i++) {
- inbuf1[2*i]=0x7ffffff*sin(6.2830*i/Nn*277);
- inbuf1[2*i+1]=0x7ffffff*cos(6.2830*i/Nn*277);
+ inbuf1[2*i]=0x7fffffff*sin(6.2830*i/Nn*277);
+ inbuf1[2*i+1]=0x7fffffff*cos(6.2830*i/Nn*277);
outbuf1[i].re=0;
outbuf1[i].im=0;
inbuf2[i]=0;
@@ -119,7 +120,9 @@ int main(void) {
//Test some stuff
//inbuf2[0] = 0x7FFFFFFF;
- mode = 3;
+ mode = 0;
+ window = 0;
+ set_window();
//demod(inbuf1, outbuf1, sndbuf1);
Nop();

0 comments on commit b1d1fcc

Please sign in to comment.