Multimodal robot implementing: Manual control Hide and Seek
Dependencies: Motordriver mbed-rtos mbed
Fork of MultiModalRobotSM by
main.cpp
- Committer:
- baijun
- Date:
- 2017-11-20
- Revision:
- 13:4c609396ed75
- Parent:
- 11:0309bef74ba8
- Child:
- 14:f413a2b209b0
File content as of revision 13:4c609396ed75:
// Sweep the motor speed from full-speed reverse (-1.0) to full speed forwards (1.0) #include "mbed.h" #include "rtos.h" #include "Motor.h" Motor m(p26, p29, p30); // pwm, fwd, rev int main() { for (float s= -1.0; s < 1.0 ; s += 0.01) { m.speed(s); wait(0.02); } }