Bluetooth communication for flocking.
Fork of BeautifulMemeProject by
PsiSwarm/serial.h@27:7eb032772bc2, 2016-01-31 (annotated)
- Committer:
- alanmillard
- Date:
- Sun Jan 31 15:14:54 2016 +0000
- Revision:
- 27:7eb032772bc2
- Parent:
- 6:ff3c66f7372b
Flocking seems to work better now, however the robot controller sometimes "crashes" (unsure why).
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: Serial Control Header File |
jah128 | 0:8a5497a2e366 | 2 | * |
jah128 | 0:8a5497a2e366 | 3 | * File: serial.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 | #ifndef SERIAL_H |
jah128 | 0:8a5497a2e366 | 16 | #define SERIAL_H |
jah128 | 0:8a5497a2e366 | 17 | |
jah128 | 0:8a5497a2e366 | 18 | void handle_user_serial_message(char * message, char length, char interface); |
jah128 | 0:8a5497a2e366 | 19 | |
jah128 | 0:8a5497a2e366 | 20 | void IF_handle_user_serial_message(char * message, char length, char interface); |
jah128 | 0:8a5497a2e366 | 21 | void IF_handle_command_serial_message(char message [3], char interface); |
jah128 | 0:8a5497a2e366 | 22 | void IF_setup_serial_interfaces(void); |
jah128 | 0:8a5497a2e366 | 23 | void IF_pc_rx_callback(void); |
jah128 | 0:8a5497a2e366 | 24 | void IF_bt_rx_callback(void); |
jah128 | 0:8a5497a2e366 | 25 | |
jah128 | 0:8a5497a2e366 | 26 | char * IF_nibble_to_binary_char(char in); |
jah128 | 0:8a5497a2e366 | 27 | char * IF_char_to_binary_char(char in); |
jah128 | 0:8a5497a2e366 | 28 | float IF_decode_unsigned_float(char byte0, char byte1); |
jah128 | 0:8a5497a2e366 | 29 | float IF_decode_float(char byte0, char byte1); |
jah128 | 0:8a5497a2e366 | 30 | float IF_decode_float(char byte0); |
jah128 | 0:8a5497a2e366 | 31 | float IF_decode_unsigned_float(char byte0); |
jah128 | 0:8a5497a2e366 | 32 | |
jah128 | 0:8a5497a2e366 | 33 | |
jah128 | 0:8a5497a2e366 | 34 | #endif |