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: FXOS8700CQ SDFileSystem mbed
Fork of AVC_Robot_Controled_Navigation by
Diff: lib/motors.h
- Revision:
- 0:3a322aad8c88
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/motors.h Thu Oct 16 01:59:21 2014 +0000 @@ -0,0 +1,22 @@ +#ifndef motors_h +#define motors_h + +// ----- Constants ------------------------------------------------------------------ +#define MOVE_FWD 'w' +#define MOVE_REV 's' +#define MOVE_LEF 'a' +#define MOVE_RIG 'd' +#define MOVE_STO 'q' +#define MOVE_90L 'o' +#define MOVE_90R 'p' + +// ----- Functions ------------------------------------------------------------------ +void move_motors(char _move_command, int _power_left, int _power_right); // Move motor function +void motor_fwd(int _power_left, int _power_right); +void motor_rev(int _power_left, int _power_right); +void motor_move_90(int direction); +void motor_left(int _power_left, int _power_right); +void motor_right(int _power_left, int _power_right); +void motor_stop(); + +#endif \ No newline at end of file