Science Memeseum / Mbed 2 deprecated BeaconDemo_RobotCode

Dependencies:   mbed

Fork of PsiSwarm-BeaconDemo_Bluetooth by James Wilson

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers settings.h Source File

settings.h

00001   /* University of York Robotics Laboratory PsiSwarm Library: PsiSwarm Settings File
00002  * 
00003  * File: settings.h
00004  *
00005  * (C) Dept. Electronics & Computer Science, University of York
00006  * James Hilder, Alan Millard, Homero Elizondo, Jon Timmis
00007  * 
00008  * PsiSwarm Library Version: 0.3
00009  *
00010  * October 2015
00011  *
00012  */ 
00013 
00014 
00015 /* OFFSET_MOTORS [1=on, recommended      0=off]
00016  * The motors typically stall when the PWM output is below around 0.2
00017  * 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
00018  */
00019 #define OFFSET_MOTORS 1 
00020 
00021 /* ENABLE_DEMO [1=on, 0=off]
00022  * If enabled the demo mode will be launched when the center button is held as the MBED is switched on or reset
00023  */
00024 #define ENABLE_DEMO 1
00025 
00026 
00027 /* SERIAL INTERFACES SETTINGS 
00028  * __________________________
00029  *
00030  * The Psi-Swarm can communicate using both the USB PC-Serial interface or via Bluetooth using a BlueSMIRF module
00031  *
00032  *
00033  */
00034 
00035 /* ENABLE_BLUETOOTH [1=on, 0=off]:  Enable if the BlueSmirf module is being used */
00036 #define ENABLE_BLUETOOTH 1
00037 
00038 /* ENABLE_PC_SERIAL [1=on, 0=off]:  Enable if the PC USB serial module is being used */
00039 #define ENABLE_PC_SERIAL 1
00040 
00041 /* BLUETOOTH_BAUD [recommended=115200]:  Baud rate for the BlueSMIRF module */
00042 #define BLUETOOTH_BAUD 115200
00043 
00044 /* PC_BAUD [recommended=460800 for optimal performance, 115200 for compatability]:  Baud rate for the PC USB serial module */
00045 //#define PC_BAUD 460800
00046 #define PC_BAUD 115200
00047 
00048 /* DEBUG_MODE [1=on, 0=off]:  Enable to allow debug messages to be sent of one of the serial interfaces */
00049 #define DEBUG_MODE 1
00050 
00051 /* SHOW_VR_WARNINGS [1=on, 0=off]:   Show voltage-regulator debug message warnings after initial boot-up */
00052 #define SHOW_VR_WARNINGS 0
00053 
00054 /* USE_LED3_FOR_INTERRUPTS [1=on, 0=off]:  Switch interrupts will appear as the lighting of LED3 on MBED */
00055 #define USE_LED3_FOR_INTERRUPTS 1
00056 
00057 /* USE_LED4_FOR_VR_WARNINGS [1=on, 0=off]:  Voltage-regulator warnings will appear as the lighting of LED4 on MBED */
00058 #define USE_LED4_FOR_VR_WARNINGS 1
00059 
00060 /* 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 */
00061 #define HALT_ON_GPIO_ERROR 1
00062 
00063 /* 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 */
00064 #define HALT_ON_ALL_VREGS_LOW 0
00065 
00066 /* 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*/
00067 #define DEBUG_OUTPUT_STREAM 1