ft. button press reset

Dependencies:   mbed

Fork of BeaconDemo_RobotCode by Science Memeseum

Committer:
jah128
Date:
Sat Oct 03 22:48:50 2015 +0000
Revision:
0:8a5497a2e366
Child:
5:598298aa4900
Initial commit of PsiSwarm API and example code

Who changed what in which revision?

UserRevisionLine numberNew 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 0:8a5497a2e366 5 * (C) Dr James Hilder, Dept. Electronics & Computer Science, University of York
jah128 0:8a5497a2e366 6 *
jah128 0:8a5497a2e366 7 * PsiSwarm Library Version: 0.2
jah128 0:8a5497a2e366 8 *
jah128 0:8a5497a2e366 9 * September 2015
jah128 0:8a5497a2e366 10 *
jah128 0:8a5497a2e366 11 */
jah128 0:8a5497a2e366 12
jah128 0:8a5497a2e366 13
jah128 0:8a5497a2e366 14 /* OFFSET_MOTORS [1=on, recommended 0=off]
jah128 0:8a5497a2e366 15 * The motors typically stall when the PWM output is below around 0.2
jah128 0:8a5497a2e366 16 * 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 17 */
jah128 0:8a5497a2e366 18 #define OFFSET_MOTORS 1
jah128 0:8a5497a2e366 19
jah128 0:8a5497a2e366 20 /* ENABLE_DEMO [1=on, 0=off]
jah128 0:8a5497a2e366 21 * 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 22 */
jah128 0:8a5497a2e366 23 #define ENABLE_DEMO 1
jah128 0:8a5497a2e366 24
jah128 0:8a5497a2e366 25
jah128 0:8a5497a2e366 26 /* SERIAL INTERFACES SETTINGS
jah128 0:8a5497a2e366 27 * __________________________
jah128 0:8a5497a2e366 28 *
jah128 0:8a5497a2e366 29 * The Psi-Swarm can communicate using both the USB PC-Serial interface or via Bluetooth using a BlueSMIRF module
jah128 0:8a5497a2e366 30 *
jah128 0:8a5497a2e366 31 *
jah128 0:8a5497a2e366 32 */
jah128 0:8a5497a2e366 33
jah128 0:8a5497a2e366 34 /* ENABLE_BLUETOOTH [1=on, 0=off]: Enable if the BlueSmirf module is being used */
jah128 0:8a5497a2e366 35 #define ENABLE_BLUETOOTH 1
jah128 0:8a5497a2e366 36
jah128 0:8a5497a2e366 37 /* ENABLE_PC_SERIAL [1=on, 0=off]: Enable if the PC USB serial module is being used */
jah128 0:8a5497a2e366 38 #define ENABLE_PC_SERIAL 1
jah128 0:8a5497a2e366 39
jah128 0:8a5497a2e366 40 /* BLUETOOTH_BAUD [recommended=115200]: Baud rate for the BlueSMIRF module */
jah128 0:8a5497a2e366 41 #define BLUETOOTH_BAUD 115200
jah128 0:8a5497a2e366 42
jah128 0:8a5497a2e366 43 /* PC_BAUD [recommended=460800 for optimal performance, 115200 for compatability]: Baud rate for the PC USB serial module */
jah128 0:8a5497a2e366 44 //#define PC_BAUD 460800
jah128 0:8a5497a2e366 45 #define PC_BAUD 115200
jah128 0:8a5497a2e366 46
jah128 0:8a5497a2e366 47 /* DEBUG_MODE [1=on, 0=off]: Enable to allow debug messages to be sent of one of the serial interfaces */
jah128 0:8a5497a2e366 48 #define DEBUG_MODE 1
jah128 0:8a5497a2e366 49
jah128 0:8a5497a2e366 50 /* 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 51 #define DEBUG_OUTPUT_STREAM 1