Robot using IMU and IR sensor data to drive autonomously and create a map
Dependencies: mbed mbed-rtos LSM9DS1_Library_cal Motor
main.cpp@0:8e17f11689f2, 2016-04-10 (annotated)
- Committer:
- wschon
- Date:
- Sun Apr 10 20:53:22 2016 +0000
- Revision:
- 0:8e17f11689f2
- Child:
- 1:27c32ba9fe93
First
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wschon | 0:8e17f11689f2 | 1 | #include "mbed.h" |
wschon | 0:8e17f11689f2 | 2 | |
wschon | 0:8e17f11689f2 | 3 | DigitalOut myled(LED1); |
wschon | 0:8e17f11689f2 | 4 | |
wschon | 0:8e17f11689f2 | 5 | int main() { |
wschon | 0:8e17f11689f2 | 6 | while(1) { |
wschon | 0:8e17f11689f2 | 7 | myled = 1; |
wschon | 0:8e17f11689f2 | 8 | wait(0.2); |
wschon | 0:8e17f11689f2 | 9 | myled = 0; |
wschon | 0:8e17f11689f2 | 10 | wait(0.2); |
wschon | 0:8e17f11689f2 | 11 | } |
wschon | 0:8e17f11689f2 | 12 | } |