Andriy Makukha
/
football_project_wo_output
football_project_wo_output
Fork of football_project by
configs.h@78:43a6b54f0372, 2016-05-09 (annotated)
- Committer:
- andriym
- Date:
- Mon May 09 01:08:01 2016 +0000
- Revision:
- 78:43a6b54f0372
- Child:
- 79:9db29f41dc9d
Changed radio configs, Player tracking table, Switch team button, Output class (for different displays and Serial), different boards support.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andriym | 78:43a6b54f0372 | 1 | /////////////////////////////////// HARDWARE SELECTION /////////////////////////////////// |
andriym | 78:43a6b54f0372 | 2 | |
andriym | 78:43a6b54f0372 | 3 | // Board select, if none selected - LPC1768 assumed |
andriym | 78:43a6b54f0372 | 4 | #define _NORDIC // nRF51822 (highest priority) |
andriym | 78:43a6b54f0372 | 5 | #define NUCLEO // Nucleo-F411RE (lesser priority) |
andriym | 78:43a6b54f0372 | 6 | |
andriym | 78:43a6b54f0372 | 7 | // Frequency select |
andriym | 78:43a6b54f0372 | 8 | //#define FREQUENCY RF69_433MHZ |
andriym | 78:43a6b54f0372 | 9 | #define FREQUENCY RF69_868MHZ |
andriym | 78:43a6b54f0372 | 10 | //#define FREQUENCY RF69_915MHZ |
andriym | 78:43a6b54f0372 | 11 | |
andriym | 78:43a6b54f0372 | 12 | #define HIGH_POWER // High power radio |
andriym | 78:43a6b54f0372 | 13 | |
andriym | 78:43a6b54f0372 | 14 | // Output select |
andriym | 78:43a6b54f0372 | 15 | #define _NO_DISP // No display? |
andriym | 78:43a6b54f0372 | 16 | #define NO_SERIAL // Send info over serial? |
andriym | 78:43a6b54f0372 | 17 | #define TEXT_LCD // Text LCD display |
andriym | 78:43a6b54f0372 | 18 | #define _I2C_DISP // I2C display (SPI assumed) |
andriym | 78:43a6b54f0372 | 19 | #define _ENABLE_SOUND // Turns on sound in the beep() function |
andriym | 78:43a6b54f0372 | 20 | |
andriym | 78:43a6b54f0372 | 21 | /////////////////////////////////// CONSTANTS /////////////////////////////////// |
andriym | 78:43a6b54f0372 | 22 | |
andriym | 78:43a6b54f0372 | 23 | #define EVERY_NODE 255 // Abstract address we are sending the packets to (doesn't matter) |
andriym | 78:43a6b54f0372 | 24 | #define NETWORKID 102 // The same on all nodes that talk to each other |
andriym | 78:43a6b54f0372 | 25 | |
andriym | 78:43a6b54f0372 | 26 | #define NAME_LEN 5 |
andriym | 78:43a6b54f0372 | 27 | #define MAX_RECORDS 35 |
andriym | 78:43a6b54f0372 | 28 | #define MAX_HISTORY_MS 60000 // 1 minute |
andriym | 78:43a6b54f0372 | 29 | #define SIGNALS_VALID_MS 4000 |
andriym | 78:43a6b54f0372 | 30 | #define SEND_RATE_MS 400L |
andriym | 78:43a6b54f0372 | 31 | //#define SEND_DESYNC 0.20 // 0.20 -> send rate +/-10% |
andriym | 78:43a6b54f0372 | 32 | |
andriym | 78:43a6b54f0372 | 33 | |
andriym | 78:43a6b54f0372 | 34 | /////////////////////////////////// LOGIC /////////////////////////////////// |
andriym | 78:43a6b54f0372 | 35 | #ifdef NORDIC |
andriym | 78:43a6b54f0372 | 36 | |
andriym | 78:43a6b54f0372 | 37 | #ifdef ENABLE_SOUND |
andriym | 78:43a6b54f0372 | 38 | #undef ENABLE_SOUND // NORDIC --> no sound (at the moment) |
andriym | 78:43a6b54f0372 | 39 | #endif |
andriym | 78:43a6b54f0372 | 40 | |
andriym | 78:43a6b54f0372 | 41 | #ifndef NO_DISP |
andriym | 78:43a6b54f0372 | 42 | #define NO_DISP // NORDIC --> no display (use Serial) |
andriym | 78:43a6b54f0372 | 43 | #endif |
andriym | 78:43a6b54f0372 | 44 | |
andriym | 78:43a6b54f0372 | 45 | #endif |