![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ft. button press reset
Fork of BeaconDemo_RobotCode by
PsiSwarm/settings.h@7:ef9ab01b9e26, 2015-10-22 (annotated)
- Committer:
- jah128
- Date:
- Thu Oct 22 13:28:17 2015 +0000
- Revision:
- 7:ef9ab01b9e26
- Parent:
- 6:ff3c66f7372b
- Child:
- 16:976a1d0ea897
Bug fix in bearing measurement
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jah128 | 0:8a5497a2e366 | 1 | /* University of York Robotics Laboratory PsiSwarm Library: PsiSwarm Settings File |
jah128 | 0:8a5497a2e366 | 2 | * |
jah128 | 0:8a5497a2e366 | 3 | * File: settings.h |
jah128 | 0:8a5497a2e366 | 4 | * |
jah128 | 6:ff3c66f7372b | 5 | * (C) Dept. Electronics & Computer Science, University of York |
jah128 | 6:ff3c66f7372b | 6 | * James Hilder, Alan Millard, Homero Elizondo, Jon Timmis |
jah128 | 0:8a5497a2e366 | 7 | * |
jah128 | 6:ff3c66f7372b | 8 | * PsiSwarm Library Version: 0.3 |
jah128 | 0:8a5497a2e366 | 9 | * |
jah128 | 6:ff3c66f7372b | 10 | * October 2015 |
jah128 | 0:8a5497a2e366 | 11 | * |
jah128 | 0:8a5497a2e366 | 12 | */ |
jah128 | 0:8a5497a2e366 | 13 | |
jah128 | 0:8a5497a2e366 | 14 | |
jah128 | 0:8a5497a2e366 | 15 | /* OFFSET_MOTORS [1=on, recommended 0=off] |
jah128 | 0:8a5497a2e366 | 16 | * The motors typically stall when the PWM output is below around 0.2 |
jah128 | 0:8a5497a2e366 | 17 | * 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:8a5497a2e366 | 18 | */ |
jah128 | 0:8a5497a2e366 | 19 | #define OFFSET_MOTORS 1 |
jah128 | 0:8a5497a2e366 | 20 | |
jah128 | 0:8a5497a2e366 | 21 | /* ENABLE_DEMO [1=on, 0=off] |
jah128 | 0:8a5497a2e366 | 22 | * If enabled the demo mode will be launched when the center button is held as the MBED is switched on or reset |
jah128 | 0:8a5497a2e366 | 23 | */ |
jah128 | 0:8a5497a2e366 | 24 | #define ENABLE_DEMO 1 |
jah128 | 0:8a5497a2e366 | 25 | |
jah128 | 0:8a5497a2e366 | 26 | |
jah128 | 0:8a5497a2e366 | 27 | /* SERIAL INTERFACES SETTINGS |
jah128 | 0:8a5497a2e366 | 28 | * __________________________ |
jah128 | 0:8a5497a2e366 | 29 | * |
jah128 | 0:8a5497a2e366 | 30 | * The Psi-Swarm can communicate using both the USB PC-Serial interface or via Bluetooth using a BlueSMIRF module |
jah128 | 0:8a5497a2e366 | 31 | * |
jah128 | 0:8a5497a2e366 | 32 | * |
jah128 | 0:8a5497a2e366 | 33 | */ |
jah128 | 0:8a5497a2e366 | 34 | |
jah128 | 0:8a5497a2e366 | 35 | /* ENABLE_BLUETOOTH [1=on, 0=off]: Enable if the BlueSmirf module is being used */ |
jah128 | 0:8a5497a2e366 | 36 | #define ENABLE_BLUETOOTH 1 |
jah128 | 0:8a5497a2e366 | 37 | |
jah128 | 0:8a5497a2e366 | 38 | /* ENABLE_PC_SERIAL [1=on, 0=off]: Enable if the PC USB serial module is being used */ |
jah128 | 0:8a5497a2e366 | 39 | #define ENABLE_PC_SERIAL 1 |
jah128 | 0:8a5497a2e366 | 40 | |
jah128 | 0:8a5497a2e366 | 41 | /* BLUETOOTH_BAUD [recommended=115200]: Baud rate for the BlueSMIRF module */ |
jah128 | 0:8a5497a2e366 | 42 | #define BLUETOOTH_BAUD 115200 |
jah128 | 0:8a5497a2e366 | 43 | |
jah128 | 0:8a5497a2e366 | 44 | /* PC_BAUD [recommended=460800 for optimal performance, 115200 for compatability]: Baud rate for the PC USB serial module */ |
jah128 | 0:8a5497a2e366 | 45 | //#define PC_BAUD 460800 |
jah128 | 0:8a5497a2e366 | 46 | #define PC_BAUD 115200 |
jah128 | 0:8a5497a2e366 | 47 | |
jah128 | 0:8a5497a2e366 | 48 | /* DEBUG_MODE [1=on, 0=off]: Enable to allow debug messages to be sent of one of the serial interfaces */ |
jah128 | 0:8a5497a2e366 | 49 | #define DEBUG_MODE 1 |
jah128 | 0:8a5497a2e366 | 50 | |
jah128 | 5:598298aa4900 | 51 | /* SHOW_VR_WARNINGS [1=on, 0=off]: Show voltage-regulator debug message warnings after initial boot-up */ |
jah128 | 5:598298aa4900 | 52 | #define SHOW_VR_WARNINGS 0 |
jah128 | 5:598298aa4900 | 53 | |
jah128 | 5:598298aa4900 | 54 | /* USE_LED3_FOR_INTERRUPTS [1=on, 0=off]: Switch interrupts will appear as the lighting of LED3 on MBED */ |
jah128 | 5:598298aa4900 | 55 | #define USE_LED3_FOR_INTERRUPTS 1 |
jah128 | 5:598298aa4900 | 56 | |
jah128 | 5:598298aa4900 | 57 | /* USE_LED4_FOR_VR_WARNINGS [1=on, 0=off]: Voltage-regulator warnings will appear as the lighting of LED4 on MBED */ |
jah128 | 5:598298aa4900 | 58 | #define USE_LED4_FOR_VR_WARNINGS 1 |
jah128 | 5:598298aa4900 | 59 | |
jah128 | 6:ff3c66f7372b | 60 | /* 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 | 6:ff3c66f7372b | 61 | #define HALT_ON_GPIO_ERROR 1 |
jah128 | 6:ff3c66f7372b | 62 | |
jah128 | 6:ff3c66f7372b | 63 | /* 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 | 7:ef9ab01b9e26 | 64 | #define HALT_ON_ALL_VREGS_LOW 0 |
jah128 | 6:ff3c66f7372b | 65 | |
jah128 | 0:8a5497a2e366 | 66 | /* 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:8a5497a2e366 | 67 | #define DEBUG_OUTPUT_STREAM 1 |