Proyecto Nivel, Edgar Ochoa, Erik Garcia

Dependencies:   MMA8451Q mbed

Committer:
verden32
Date:
Mon Feb 15 03:45:21 2016 +0000
Revision:
37:7bc8819f91f4
Parent:
35:60b29a00cf12
Final alternativo 1

Who changed what in which revision?

UserRevisionLine numberNew 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 37:7bc8819f91f4 5 //350<data[1] && data[1]>140 && data[0]<-120 && data[0]>-390 && data[2]>16100 && data[2]<=16300
verden32 35:60b29a00cf12 6
verden32 37:7bc8819f91f4 7 if(300>data[1] && data[1]>-16100 && data[0]<-100 && data[0]>-1200 && data[2]<16200 && data[2]>500){
verden32 37:7bc8819f91f4 8 pc.printf("Nivel a la derecha\n"); // ya quedo
verden32 37:7bc8819f91f4 9 wait(.4);}
verden32 37:7bc8819f91f4 10
verden32 37:7bc8819f91f4 11 if(2000<data[2] && data[2]<16100 && data[0]<-200 && data[0]>-1000 && data[1]>1000 && data[1]<16200){
verden32 37:7bc8819f91f4 12 pc.printf("Nivel a la izquierda\n"); // este ya quedo
verden32 37:7bc8819f91f4 13 wait(.4);}
verden32 35:60b29a00cf12 14
verden32 37:7bc8819f91f4 15 if(-220>=data[0] && data[0]>=-16000){
verden32 35:60b29a00cf12 16 pc.printf("Nivel hacia atras\n");
verden32 35:60b29a00cf12 17 wait(.4);}
verden32 37:7bc8819f91f4 18
verden32 37:7bc8819f91f4 19 if(-30<=data[0] && data[0]<=16000){
verden32 37:7bc8819f91f4 20 pc.printf("Nivel hacia adelante \n");
verden32 37:7bc8819f91f4 21 wait(.4); }
verden32 23:c5ef5e0f3809 22 //150-432
verden32 23:c5ef5e0f3809 23 }
verden32 14:867038a3f806 24 #endif