Bluetooth communication for flocking.

Dependencies:   mbed

Fork of BeautifulMemeProject by James Hilder

Committer:
jah128
Date:
Sat Oct 03 22:48:50 2015 +0000
Revision:
0:8a5497a2e366
Child:
6:ff3c66f7372b
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: Motor Functions Header File
jah128 0:8a5497a2e366 2 *
jah128 0:8a5497a2e366 3 * File: motors.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 #ifndef MOTORS_H
jah128 0:8a5497a2e366 14 #define MOTORS_H
jah128 0:8a5497a2e366 15
jah128 0:8a5497a2e366 16 void set_left_motor_speed(float speed);
jah128 0:8a5497a2e366 17 void set_right_motor_speed(float speed);
jah128 0:8a5497a2e366 18 void brake_left_motor(void);
jah128 0:8a5497a2e366 19 void brake_right_motor(void);
jah128 0:8a5497a2e366 20 void brake(void);
jah128 0:8a5497a2e366 21 void stop(void);
jah128 0:8a5497a2e366 22 void forward(float speed);
jah128 0:8a5497a2e366 23 void backward(float speed);
jah128 0:8a5497a2e366 24 void turn(float speed);
jah128 0:8a5497a2e366 25
jah128 0:8a5497a2e366 26
jah128 0:8a5497a2e366 27 void IF_update_motors();
jah128 0:8a5497a2e366 28 float IF_calibrated_speed(float speed);
jah128 0:8a5497a2e366 29 void IF_init_motors(void);
jah128 0:8a5497a2e366 30
jah128 0:8a5497a2e366 31 #endif