Proyecto Nivel, Edgar Ochoa, Erik Garcia

Dependencies:   MMA8451Q mbed

Committer:
verden32
Date:
Mon Feb 15 03:49:23 2016 +0000
Revision:
38:520ed258f664
Parent:
35:60b29a00cf12
-.-;

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