CSE477 / swimate_v2

Dependencies:   Adafruit_GFX_128x64 DS3231 PinDetect SDFileSystem USBDevice mbed RealtimeMath MODSERIAL

Committer:
ellingjp
Date:
Fri May 09 00:04:44 2014 +0000
Revision:
3:9aa7c37212b5
Parent:
2:a28cc676a454
Fixes for real time analysis, still doesn't seem to be working right

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ellingjp 0:cd1fe4f0ed39 1 #define DMP_ERROR_RATE 1
ellingjp 0:cd1fe4f0ed39 2 #define SD_ERROR_RATE 2
ellingjp 0:cd1fe4f0ed39 3
ellingjp 2:a28cc676a454 4 #define RAW_ACCEL_FILE "/sd/raw_accel.log"
ellingjp 2:a28cc676a454 5 #define LIN_ACCEL_FILE "/sd/lin_accel.log"
ellingjp 2:a28cc676a454 6 #define WORLD_ACCEL_FILE "/sd/world_accel.log"
ellingjp 2:a28cc676a454 7 #define GRAV_FILE "/sd/gravity.log"
ellingjp 2:a28cc676a454 8 #define QUAT_FILE "/sd/quaternians.log"
ellingjp 2:a28cc676a454 9 #define SPLITS_FILE "/sd/split_times.log"
ellingjp 0:cd1fe4f0ed39 10
ellingjp 3:9aa7c37212b5 11 #define PC_DEBUG
ellingjp 0:cd1fe4f0ed39 12 #ifdef PC_DEBUG
ellingjp 0:cd1fe4f0ed39 13 #define PC_PRINT(x) pc.printf("%s", x);
ellingjp 0:cd1fe4f0ed39 14 #define PC_PRINTF(x,y) pc.printf(x, y);
ellingjp 0:cd1fe4f0ed39 15 #define PC_PRINTLN(x) pc.printf("%s\r\n", x);
ellingjp 0:cd1fe4f0ed39 16 #define PC_PRINTLNF(x,y) pc.printf(x,y); pc.printf("\r\n");
ellingjp 0:cd1fe4f0ed39 17 #define PC_PRINTR(x) pc.printf("%s\r",x);
ellingjp 0:cd1fe4f0ed39 18 #define PC_PRINTFR(x,y) pc.printf(x,y); pc.printf("\r");
ellingjp 0:cd1fe4f0ed39 19 #else
ellingjp 0:cd1fe4f0ed39 20 #define PC_PRINT(x)
ellingjp 0:cd1fe4f0ed39 21 #define PC_PRINTF(x,y)
ellingjp 0:cd1fe4f0ed39 22 #define PC_PRINTLN(x)
ellingjp 0:cd1fe4f0ed39 23 #define PC_PRINTLNF(x,y)
ellingjp 0:cd1fe4f0ed39 24 #define PC_PRINTR(x)
ellingjp 0:cd1fe4f0ed39 25 #define PC_PRINTFR(x,y)
ellingjp 0:cd1fe4f0ed39 26 #endif
ellingjp 0:cd1fe4f0ed39 27
ellingjp 0:cd1fe4f0ed39 28 #define OLED_DEBUG
ellingjp 0:cd1fe4f0ed39 29 #ifdef OLED_DEBUG
ellingjp 0:cd1fe4f0ed39 30 #define OLED_SETCURS(xpos,ypos) oled.setCursor(xpos,ypos);
ellingjp 0:cd1fe4f0ed39 31 #define OLED_CLEAR() oled.clearDisplay();
ellingjp 0:cd1fe4f0ed39 32
ellingjp 0:cd1fe4f0ed39 33 #define OLED_PRINT(x) oled.printf("%s", x); oled.display();
ellingjp 0:cd1fe4f0ed39 34 #define OLED_PRINTF(x,y) oled.printf(x, y); oled.display();
ellingjp 0:cd1fe4f0ed39 35 #define OLED_PRINTLN(x) oled.printf("%s\r\n", x); oled.display();
ellingjp 0:cd1fe4f0ed39 36 #define OLED_PRINTLNF(x,y) oled.printf(x,y); oled.printf("\r\n"); oled.display();
ellingjp 0:cd1fe4f0ed39 37 #define OLED_PRINTR(x) oled.printf("%s\r",x); oled.display();
ellingjp 0:cd1fe4f0ed39 38 #define OLED_PRINTFR(x,y) oled.printf(x,y); oled.printf("\r"); oled.display();
ellingjp 0:cd1fe4f0ed39 39
ellingjp 0:cd1fe4f0ed39 40 // Specify position
ellingjp 0:cd1fe4f0ed39 41 #define OLED_PRINTP(x,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf("%s", x); oled.display();
ellingjp 0:cd1fe4f0ed39 42 #define OLED_PRINTPF(x,y,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf(x, y); oled.display();
ellingjp 0:cd1fe4f0ed39 43 #define OLED_PRINTPLN(x,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf("%s\r\n", x); oled.display();
ellingjp 0:cd1fe4f0ed39 44 #define OLED_PRINTPLNF(x,y,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf(x,y); oled.printf("\r\n"); oled.display();
ellingjp 0:cd1fe4f0ed39 45 #define OLED_PRINTPR(x,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf("%s\r",x); oled.display();
ellingjp 0:cd1fe4f0ed39 46 #define OLED_PRINTPFR(x,y,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf(x,y); oled.printf("\r"); oled.display();
ellingjp 0:cd1fe4f0ed39 47 #else
ellingjp 0:cd1fe4f0ed39 48 #define OLED_SETCURS(xpos,ypos)
ellingjp 0:cd1fe4f0ed39 49
ellingjp 0:cd1fe4f0ed39 50 #define OLED_PRINT(x)
ellingjp 0:cd1fe4f0ed39 51 #define OLED_PRINTF(x,y)
ellingjp 0:cd1fe4f0ed39 52 #define OLED_PRINTLN(x)
ellingjp 0:cd1fe4f0ed39 53 #define OLED_PRINTLNF(x,y)
ellingjp 0:cd1fe4f0ed39 54 #define OLED_PRINTR(x)
ellingjp 0:cd1fe4f0ed39 55 #define OLED_PRINTFR(x,y)
ellingjp 0:cd1fe4f0ed39 56
ellingjp 0:cd1fe4f0ed39 57 // Specify position
ellingjp 0:cd1fe4f0ed39 58 #define OLED_PRINTP(x,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 59 #define OLED_PRINTPF(x,y,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 60 #define OLED_PRINTPLN(x,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 61 #define OLED_PRINTPLNF(x,y,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 62 #define OLED_PRINTPR(x,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 63 #define OLED_PRINTPFR(x,y,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 64 #endif