Fx0 hackathon team4
Dependencies: NySNICInterface mbed-rtos mbed
Fork of RESTServerSample by
control_motors.h@2:2f187e09bdb0, 2015-02-15 (annotated)
- Committer:
- yi
- Date:
- Sun Feb 15 00:54:43 2015 +0000
- Revision:
- 2:2f187e09bdb0
- Child:
- 4:99a67256b765
arranged the code (control_motors.cpp, control_motors.h)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yi | 2:2f187e09bdb0 | 1 | #include "mbed.h" |
yi | 2:2f187e09bdb0 | 2 | |
yi | 2:2f187e09bdb0 | 3 | #define MOTOR_RIGHT 0 |
yi | 2:2f187e09bdb0 | 4 | #define MOTOR_LEFT 1 |
yi | 2:2f187e09bdb0 | 5 | |
yi | 2:2f187e09bdb0 | 6 | |
yi | 2:2f187e09bdb0 | 7 | void parse_request(char *request); |
yi | 2:2f187e09bdb0 | 8 | |
yi | 2:2f187e09bdb0 | 9 | void move(int motor_id, int speed); |
yi | 2:2f187e09bdb0 | 10 | void start_shaking_tail(); |
yi | 2:2f187e09bdb0 | 11 | void stop_shaking_tail(); |
yi | 2:2f187e09bdb0 | 12 |