Edgar Ochoa
/
ProyectoNivel
Proyecto Nivel, Edgar Ochoa, Erik Garcia
Ochoa.h@29:13938c8e3765, 2016-02-12 (annotated)
- Committer:
- verden32
- Date:
- Fri Feb 12 14:52:34 2016 +0000
- Revision:
- 29:13938c8e3765
- Parent:
- 28:a34c81f0b387
- Child:
- 35:60b29a00cf12
ochoa final 1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
verden32 | 15:9bd3eb94c3d8 | 1 | #ifndef OCHOA |
verden32 | 15:9bd3eb94c3d8 | 2 | #define OCHOA |
verden32 | 23:c5ef5e0f3809 | 3 | #include "mbed.h" |
verden32 | 23:c5ef5e0f3809 | 4 | void Mensajes(){ |
verden32 | 28:a34c81f0b387 | 5 | if(150<data[1] && data[1]>440){ |
verden32 | 29:13938c8e3765 | 6 | pc.printf("Nivel estable\n");} |
verden32 | 27:85d44b207258 | 7 | wait(.4); |
verden32 | 28:a34c81f0b387 | 8 | if(0<=data[1] && data[1]>=-16000){ |
verden32 | 29:13938c8e3765 | 9 | pc.printf("Nivel a la derecha\n");} |
verden32 | 27:85d44b207258 | 10 | wait(.4); |
verden32 | 28:a34c81f0b387 | 11 | if(0<=data[1] && data[1]>=16000){ |
verden32 | 29:13938c8e3765 | 12 | pc.printf("Nivel a la izquierda\n");} |
verden32 | 28:a34c81f0b387 | 13 | if(-36<=data[0] && data[0]>=16000){ |
verden32 | 29:13938c8e3765 | 14 | pc.printf("Nivel hacia adelante\n");} |
verden32 | 27:85d44b207258 | 15 | wait(.4); |
verden32 | 28:a34c81f0b387 | 16 | if(0<=data[0] && data[0]>=-16000){ |
verden32 | 29:13938c8e3765 | 17 | pc.printf("Nivel hacia atras\n");} |
verden32 | 27:85d44b207258 | 18 | wait(.4); |
verden32 | 23:c5ef5e0f3809 | 19 | //150-432 |
verden32 | 23:c5ef5e0f3809 | 20 | } |
verden32 | 14:867038a3f806 | 21 | #endif |