Blank program code for the Psi Swarm robot using the C++ API variant (version 0.8)
Dependencies: PsiSwarmV8_CPP mbed
Fork of PsiSwarm_V7_Blank by
main.h@2:5d37e5fd7141, 2016-10-17 (annotated)
- Committer:
- jah128
- Date:
- Mon Oct 17 13:20:23 2016 +0000
- Revision:
- 2:5d37e5fd7141
- Parent:
- 0:9c0ccd879613
Updated copyright message
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jah128 | 0:9c0ccd879613 | 1 | /*********************************************************************** |
jah128 | 0:9c0ccd879613 | 2 | ** ██████╗ ███████╗██╗███████╗██╗ ██╗ █████╗ ██████╗ ███╗ ███╗ ** |
jah128 | 0:9c0ccd879613 | 3 | ** ██╔══██╗██╔════╝██║██╔════╝██║ ██║██╔══██╗██╔══██╗████╗ ████║ ** |
jah128 | 0:9c0ccd879613 | 4 | ** ██████╔╝███████╗██║███████╗██║ █╗ ██║███████║██████╔╝██╔████╔██║ ** |
jah128 | 0:9c0ccd879613 | 5 | ** ██╔═══╝ ╚════██║██║╚════██║██║███╗██║██╔══██║██╔══██╗██║╚██╔╝██║ ** |
jah128 | 0:9c0ccd879613 | 6 | ** ██║ ███████║██║███████║╚███╔███╔╝██║ ██║██║ ██║██║ ╚═╝ ██║ ** |
jah128 | 0:9c0ccd879613 | 7 | ** ╚═╝ ╚══════╝╚═╝╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ** |
jah128 | 0:9c0ccd879613 | 8 | ************************************************************************ |
jah128 | 0:9c0ccd879613 | 9 | ** Copyright 2016 University of York ** |
jah128 | 0:9c0ccd879613 | 10 | ** ** |
jah128 | 0:9c0ccd879613 | 11 | ** Licensed under the Apache License, Version 2.0 (the "License") ** |
jah128 | 0:9c0ccd879613 | 12 | ** You may not use this file except in compliance with the License. ** |
jah128 | 0:9c0ccd879613 | 13 | ** You may obtain a copy of the License at ** |
jah128 | 0:9c0ccd879613 | 14 | ** http://www.apache.org/licenses/LICENSE-2.0 Unless required by ** |
jah128 | 0:9c0ccd879613 | 15 | ** applicable law or agreed to in writing, software distributed under ** |
jah128 | 0:9c0ccd879613 | 16 | ** under the License is distributed on an "AS IS" BASIS WITHOUT ** |
jah128 | 0:9c0ccd879613 | 17 | ** WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** |
jah128 | 0:9c0ccd879613 | 18 | ** See the License for the specific language governing permissions ** |
jah128 | 0:9c0ccd879613 | 19 | ** and limitations under the License. ** |
jah128 | 0:9c0ccd879613 | 20 | ***********************************************************************/ |
jah128 | 0:9c0ccd879613 | 21 | |
jah128 | 0:9c0ccd879613 | 22 | /// PsiSwarm Blank Example Code |
jah128 | 2:5d37e5fd7141 | 23 | /// Version 0.8 |
jah128 | 0:9c0ccd879613 | 24 | /// James Hilder, Alan Millard, Alexander Horsfield, Homero Elizondo, Jon Timmis |
jah128 | 0:9c0ccd879613 | 25 | /// University of York |
jah128 | 0:9c0ccd879613 | 26 | |
jah128 | 0:9c0ccd879613 | 27 | #ifndef MAIN_H |
jah128 | 0:9c0ccd879613 | 28 | #define MAIN_H |
jah128 | 0:9c0ccd879613 | 29 | |
jah128 | 0:9c0ccd879613 | 30 | #include "psiswarm.h" |
jah128 | 0:9c0ccd879613 | 31 | |
jah128 | 0:9c0ccd879613 | 32 | int main(void); |
jah128 | 0:9c0ccd879613 | 33 | void user_code_setup(void); |
jah128 | 0:9c0ccd879613 | 34 | void user_code_loop(void); |
jah128 | 0:9c0ccd879613 | 35 | void handle_switch_event(char switch_state); |
jah128 | 0:9c0ccd879613 | 36 | void handle_user_serial_message(char * message, char length, char interface); |
jah128 | 0:9c0ccd879613 | 37 | |
jah128 | 0:9c0ccd879613 | 38 | #endif |