Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of BeaconDemo_RobotCode by
Diff: PsiSwarm/motors.h
- Revision:
- 0:8a5497a2e366
- Child:
- 6:ff3c66f7372b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PsiSwarm/motors.h Sat Oct 03 22:48:50 2015 +0000 @@ -0,0 +1,31 @@ +/* University of York Robotics Laboratory PsiSwarm Library: Motor Functions Header File + * + * File: motors.h + * + * (C) Dr James Hilder, Dept. Electronics & Computer Science, University of York + * + * PsiSwarm Library Version: 0.2 + * + * September 2015 + * + */ + +#ifndef MOTORS_H +#define MOTORS_H + +void set_left_motor_speed(float speed); +void set_right_motor_speed(float speed); +void brake_left_motor(void); +void brake_right_motor(void); +void brake(void); +void stop(void); +void forward(float speed); +void backward(float speed); +void turn(float speed); + + +void IF_update_motors(); +float IF_calibrated_speed(float speed); +void IF_init_motors(void); + +#endif \ No newline at end of file
