Library for the PsiSwarm Robot - Version 0.7

Dependents:   PsiSwarm_V7_Blank

Fork of PsiSwarmLibrary by James Hilder

Committer:
jah128
Date:
Sat Oct 15 13:51:39 2016 +0000
Revision:
6:b340a527add9
Parent:
5:3cdd1a37cdd7
Added Apache license to files

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jah128 5:3cdd1a37cdd7 1 /* University of York Robotics Laboratory PsiSwarm Library: PsiSwarm Settings File
jah128 0:d6269d17c8cf 2 *
jah128 6:b340a527add9 3 * Copyright 2016 University of York
jah128 6:b340a527add9 4 *
jah128 6:b340a527add9 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
jah128 6:b340a527add9 6 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
jah128 6:b340a527add9 7 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS
jah128 6:b340a527add9 8 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
jah128 6:b340a527add9 9 * See the License for the specific language governing permissions and limitations under the License.
jah128 6:b340a527add9 10 *
jah128 0:d6269d17c8cf 11 * File: settings.h
jah128 0:d6269d17c8cf 12 *
jah128 0:d6269d17c8cf 13 * (C) Dept. Electronics & Computer Science, University of York
jah128 0:d6269d17c8cf 14 * James Hilder, Alan Millard, Alexander Horsfield, Homero Elizondo, Jon Timmis
jah128 0:d6269d17c8cf 15 *
jah128 5:3cdd1a37cdd7 16 * PsiSwarm Library Version: 0.7
jah128 0:d6269d17c8cf 17 *
jah128 5:3cdd1a37cdd7 18 * October 2016
jah128 0:d6269d17c8cf 19 *
jah128 0:d6269d17c8cf 20 *
jah128 0:d6269d17c8cf 21 */
jah128 0:d6269d17c8cf 22
jah128 4:1c621cb8cf0d 23 /* USE_MOTOR_CALIBRATION [1=on, recommended 0=off]
jah128 4:1c621cb8cf0d 24 * If enabled, the actual motor speeds will be adjusted from the requested values using the motor calibration values stored in
jah128 4:1c621cb8cf0d 25 * firmware (and set using the motor calibration code in the demo mode)
jah128 4:1c621cb8cf0d 26 */
jah128 4:1c621cb8cf0d 27 #define USE_MOTOR_CALIBRATION 1
jah128 0:d6269d17c8cf 28
jah128 0:d6269d17c8cf 29 /* OFFSET_MOTORS [1=on, recommended 0=off]
jah128 0:d6269d17c8cf 30 * The motors typically stall when the PWM output is below around 0.2
jah128 0:d6269d17c8cf 31 * 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 32 */
jah128 0:d6269d17c8cf 33 #define OFFSET_MOTORS 1
jah128 0:d6269d17c8cf 34
jah128 0:d6269d17c8cf 35 /* ENABLE_DEMO [1=on, 0=off]
jah128 0:d6269d17c8cf 36 * 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 37 */
jah128 0:d6269d17c8cf 38 #define ENABLE_DEMO 1
jah128 0:d6269d17c8cf 39
jah128 0:d6269d17c8cf 40
jah128 0:d6269d17c8cf 41 /* ENABLE_BASIC [1=on, 0=off]: Enable if the Psi-BASIC Interpretter is being used */
jah128 0:d6269d17c8cf 42 #define ENABLE_BASIC 1
jah128 0:d6269d17c8cf 43
jah128 0:d6269d17c8cf 44 /* SERIAL INTERFACES SETTINGS
jah128 0:d6269d17c8cf 45 * __________________________
jah128 0:d6269d17c8cf 46 *
jah128 0:d6269d17c8cf 47 * The Psi-Swarm can communicate using both the USB PC-Serial interface or via Bluetooth using a BlueSMIRF module
jah128 0:d6269d17c8cf 48 *
jah128 0:d6269d17c8cf 49 *
jah128 0:d6269d17c8cf 50 */
jah128 0:d6269d17c8cf 51
jah128 0:d6269d17c8cf 52 /* ENABLE_BLUETOOTH [1=on, 0=off]: Enable if the BlueSmirf module is being used */
jah128 0:d6269d17c8cf 53 #define ENABLE_BLUETOOTH 1
jah128 0:d6269d17c8cf 54
jah128 0:d6269d17c8cf 55 /* ENABLE_PC_SERIAL [1=on, 0=off]: Enable if the PC USB serial module is being used */
jah128 0:d6269d17c8cf 56 #define ENABLE_PC_SERIAL 1
jah128 0:d6269d17c8cf 57
jah128 0:d6269d17c8cf 58 /* BLUETOOTH_BAUD [recommended=115200]: Baud rate for the BlueSMIRF module */
jah128 0:d6269d17c8cf 59 #define BLUETOOTH_BAUD 115200
jah128 0:d6269d17c8cf 60
jah128 0:d6269d17c8cf 61 /* PC_BAUD [recommended=460800 for optimal performance, 115200 for compatability]: Baud rate for the PC USB serial module */
jah128 0:d6269d17c8cf 62 //#define PC_BAUD 460800
jah128 0:d6269d17c8cf 63 #define PC_BAUD 115200
jah128 0:d6269d17c8cf 64
jah128 0:d6269d17c8cf 65 /* DEBUG_MODE [1=on, 0=off]: Enable to allow debug messages to be sent of one of the serial interfaces */
jah128 0:d6269d17c8cf 66 #define DEBUG_MODE 1
jah128 0:d6269d17c8cf 67
jah128 0:d6269d17c8cf 68 /* SHOW_VR_WARNINGS [1=on, 0=off]: Show voltage-regulator debug message warnings after initial boot-up */
jah128 0:d6269d17c8cf 69 #define SHOW_VR_WARNINGS 0
jah128 0:d6269d17c8cf 70
jah128 0:d6269d17c8cf 71 /* USE_LED3_FOR_INTERRUPTS [1=on, 0=off]: Switch interrupts will appear as the lighting of LED3 on MBED */
jah128 0:d6269d17c8cf 72 #define USE_LED3_FOR_INTERRUPTS 1
jah128 0:d6269d17c8cf 73
jah128 0:d6269d17c8cf 74 /* USE_LED4_FOR_VR_WARNINGS [1=on, 0=off]: Voltage-regulator warnings will appear as the lighting of LED4 on MBED */
jah128 0:d6269d17c8cf 75 #define USE_LED4_FOR_VR_WARNINGS 1
jah128 0:d6269d17c8cf 76
jah128 0:d6269d17c8cf 77 /* 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 78 #define HALT_ON_GPIO_ERROR 1
jah128 0:d6269d17c8cf 79
jah128 0:d6269d17c8cf 80 /* 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 81 #define HALT_ON_ALL_VREGS_LOW 0
jah128 0:d6269d17c8cf 82
jah128 0:d6269d17c8cf 83 /* 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 84 #define DEBUG_OUTPUT_STREAM 1