First release.
Dependencies: FXOS8700CQ SDFileSystem mbed
Final program
- Controling a robot by Bluetooth, it is capable of making 90° turns and move pre-defined distances.
Code by:
- Mayumi Hori
- Sarahí Morán
- Gerardo Carmona
my_libraries/motors.h@5:b384cf06de76, 2014-11-07 (annotated)
- Committer:
- gerardo_carmona
- Date:
- Fri Nov 07 05:12:50 2014 +0000
- Revision:
- 5:b384cf06de76
- Parent:
- 3:bd16e43ad7be
Not finished!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gerardo_carmona | 0:3a322aad8c88 | 1 | #ifndef motors_h |
gerardo_carmona | 0:3a322aad8c88 | 2 | #define motors_h |
gerardo_carmona | 0:3a322aad8c88 | 3 | |
gerardo_carmona | 0:3a322aad8c88 | 4 | // ----- Constants ------------------------------------------------------------------ |
gerardo_carmona | 3:bd16e43ad7be | 5 | #define FAST 100 |
gerardo_carmona | 3:bd16e43ad7be | 6 | #define SLOW 50 |
gerardo_carmona | 0:3a322aad8c88 | 7 | |
gerardo_carmona | 0:3a322aad8c88 | 8 | // ----- Functions ------------------------------------------------------------------ |
gerardo_carmona | 3:bd16e43ad7be | 9 | //void move_motors(char _move_command); // Move motor function |
gerardo_carmona | 0:3a322aad8c88 | 10 | void motor_fwd(int _power_left, int _power_right); |
gerardo_carmona | 0:3a322aad8c88 | 11 | void motor_rev(int _power_left, int _power_right); |
gerardo_carmona | 0:3a322aad8c88 | 12 | void motor_move_90(int direction); |
gerardo_carmona | 0:3a322aad8c88 | 13 | void motor_left(int _power_left, int _power_right); |
gerardo_carmona | 0:3a322aad8c88 | 14 | void motor_right(int _power_left, int _power_right); |
gerardo_carmona | 0:3a322aad8c88 | 15 | void motor_stop(); |
gerardo_carmona | 0:3a322aad8c88 | 16 | |
gerardo_carmona | 3:bd16e43ad7be | 17 | #endif |