Library for the PsiSwarm Robot - Version 0.4
settings.h@3:7c0d1f581757, 2016-03-15 (annotated)
- Committer:
- jah128
- Date:
- Tue Mar 15 00:58:09 2016 +0000
- Revision:
- 3:7c0d1f581757
- Parent:
- 2:c6986ee3c7c5
Added to serial code; reverted back to old version of message handling [temporary fix?]
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jah128 | 0:d6269d17c8cf | 1 | /* University of York Robotics Laboratory PsiSwarm Library: PsiSwarm Settings File |
jah128 | 0:d6269d17c8cf | 2 | * |
jah128 | 0:d6269d17c8cf | 3 | * File: settings.h |
jah128 | 0:d6269d17c8cf | 4 | * |
jah128 | 0:d6269d17c8cf | 5 | * (C) Dept. Electronics & Computer Science, University of York |
jah128 | 0:d6269d17c8cf | 6 | * James Hilder, Alan Millard, Alexander Horsfield, Homero Elizondo, Jon Timmis |
jah128 | 0:d6269d17c8cf | 7 | * |
jah128 | 2:c6986ee3c7c5 | 8 | * PsiSwarm Library Version: 0.41 |
jah128 | 0:d6269d17c8cf | 9 | * |
jah128 | 2:c6986ee3c7c5 | 10 | * March 2016 |
jah128 | 0:d6269d17c8cf | 11 | * |
jah128 | 0:d6269d17c8cf | 12 | * |
jah128 | 0:d6269d17c8cf | 13 | */ |
jah128 | 0:d6269d17c8cf | 14 | |
jah128 | 0:d6269d17c8cf | 15 | |
jah128 | 0:d6269d17c8cf | 16 | /* OFFSET_MOTORS [1=on, recommended 0=off] |
jah128 | 0:d6269d17c8cf | 17 | * The motors typically stall when the PWM output is below around 0.2 |
jah128 | 0:d6269d17c8cf | 18 | * Enabling the offset shifts the actual PWM range so that the motor speed 0.0 -> 1.0 actually sets a PWM output of 0.2 -> 1.0 |
jah128 | 0:d6269d17c8cf | 19 | */ |
jah128 | 0:d6269d17c8cf | 20 | #define OFFSET_MOTORS 1 |
jah128 | 0:d6269d17c8cf | 21 | |
jah128 | 0:d6269d17c8cf | 22 | /* ENABLE_DEMO [1=on, 0=off] |
jah128 | 0:d6269d17c8cf | 23 | * If enabled the demo mode will be launched when the center button is held as the MBED is switched on or reset |
jah128 | 0:d6269d17c8cf | 24 | */ |
jah128 | 0:d6269d17c8cf | 25 | #define ENABLE_DEMO 1 |
jah128 | 0:d6269d17c8cf | 26 | |
jah128 | 0:d6269d17c8cf | 27 | |
jah128 | 0:d6269d17c8cf | 28 | /* ENABLE_BASIC [1=on, 0=off]: Enable if the Psi-BASIC Interpretter is being used */ |
jah128 | 0:d6269d17c8cf | 29 | #define ENABLE_BASIC 1 |
jah128 | 0:d6269d17c8cf | 30 | |
jah128 | 0:d6269d17c8cf | 31 | /* SERIAL INTERFACES SETTINGS |
jah128 | 0:d6269d17c8cf | 32 | * __________________________ |
jah128 | 0:d6269d17c8cf | 33 | * |
jah128 | 0:d6269d17c8cf | 34 | * The Psi-Swarm can communicate using both the USB PC-Serial interface or via Bluetooth using a BlueSMIRF module |
jah128 | 0:d6269d17c8cf | 35 | * |
jah128 | 0:d6269d17c8cf | 36 | * |
jah128 | 0:d6269d17c8cf | 37 | */ |
jah128 | 0:d6269d17c8cf | 38 | |
jah128 | 0:d6269d17c8cf | 39 | /* ENABLE_BLUETOOTH [1=on, 0=off]: Enable if the BlueSmirf module is being used */ |
jah128 | 0:d6269d17c8cf | 40 | #define ENABLE_BLUETOOTH 1 |
jah128 | 0:d6269d17c8cf | 41 | |
jah128 | 0:d6269d17c8cf | 42 | /* ENABLE_PC_SERIAL [1=on, 0=off]: Enable if the PC USB serial module is being used */ |
jah128 | 0:d6269d17c8cf | 43 | #define ENABLE_PC_SERIAL 1 |
jah128 | 0:d6269d17c8cf | 44 | |
jah128 | 0:d6269d17c8cf | 45 | /* BLUETOOTH_BAUD [recommended=115200]: Baud rate for the BlueSMIRF module */ |
jah128 | 0:d6269d17c8cf | 46 | #define BLUETOOTH_BAUD 115200 |
jah128 | 0:d6269d17c8cf | 47 | |
jah128 | 0:d6269d17c8cf | 48 | /* PC_BAUD [recommended=460800 for optimal performance, 115200 for compatability]: Baud rate for the PC USB serial module */ |
jah128 | 0:d6269d17c8cf | 49 | //#define PC_BAUD 460800 |
jah128 | 0:d6269d17c8cf | 50 | #define PC_BAUD 115200 |
jah128 | 0:d6269d17c8cf | 51 | |
jah128 | 0:d6269d17c8cf | 52 | /* DEBUG_MODE [1=on, 0=off]: Enable to allow debug messages to be sent of one of the serial interfaces */ |
jah128 | 0:d6269d17c8cf | 53 | #define DEBUG_MODE 1 |
jah128 | 0:d6269d17c8cf | 54 | |
jah128 | 0:d6269d17c8cf | 55 | /* SHOW_VR_WARNINGS [1=on, 0=off]: Show voltage-regulator debug message warnings after initial boot-up */ |
jah128 | 0:d6269d17c8cf | 56 | #define SHOW_VR_WARNINGS 0 |
jah128 | 0:d6269d17c8cf | 57 | |
jah128 | 0:d6269d17c8cf | 58 | /* USE_LED3_FOR_INTERRUPTS [1=on, 0=off]: Switch interrupts will appear as the lighting of LED3 on MBED */ |
jah128 | 0:d6269d17c8cf | 59 | #define USE_LED3_FOR_INTERRUPTS 1 |
jah128 | 0:d6269d17c8cf | 60 | |
jah128 | 0:d6269d17c8cf | 61 | /* USE_LED4_FOR_VR_WARNINGS [1=on, 0=off]: Voltage-regulator warnings will appear as the lighting of LED4 on MBED */ |
jah128 | 0:d6269d17c8cf | 62 | #define USE_LED4_FOR_VR_WARNINGS 1 |
jah128 | 0:d6269d17c8cf | 63 | |
jah128 | 0:d6269d17c8cf | 64 | /* HALT_ON_GPIO_ERROR [1=on, 0=off]: Halts system if no GPIO response received during init() - typically this happens when MBED is powered but robot is switched off */ |
jah128 | 0:d6269d17c8cf | 65 | #define HALT_ON_GPIO_ERROR 1 |
jah128 | 0:d6269d17c8cf | 66 | |
jah128 | 0:d6269d17c8cf | 67 | /* HALT_ON_ALL_VREGS_LOW [1=on, 0=off]: Halts system when all 3.3V voltage regulators are low on boot-up - typically this happens when MBED is powered but robot is switched off */ |
jah128 | 0:d6269d17c8cf | 68 | #define HALT_ON_ALL_VREGS_LOW 0 |
jah128 | 0:d6269d17c8cf | 69 | |
jah128 | 0:d6269d17c8cf | 70 | /* DEBUG_OUTPUT_STREAM [1=PC\USB 2=BlueSmirf 4=Display]: Specify which output stream(s) should be used by default for debug messages, if enabled*/ |
jah128 | 0:d6269d17c8cf | 71 | #define DEBUG_OUTPUT_STREAM 1 |