Edgar Ochoa
/
ProyectoNivel
Proyecto Nivel, Edgar Ochoa, Erik Garcia
Diff: versionerik.h
- Revision:
- 22:de1ab79df237
- Parent:
- 17:11ceb54a2e7d
- Child:
- 24:0de2f491c212
--- a/versionerik.h Fri Feb 12 13:35:53 2016 +0000 +++ b/versionerik.h Fri Feb 12 14:01:53 2016 +0000 @@ -4,7 +4,7 @@ void erik_nivel(){ - r = 1.0 - abs(data[0]/16500.0); + /* r = 1.0 - abs(data[0]/16500.0); g = 1.0 - abs(data[1]/16500.0); b = 1.0 - abs(data[2]/16500.0); @@ -12,11 +12,22 @@ pc.printf("%d,%d,%d,\n",data[0],data[1],data[2]); wait(0.4); - - if(){ + */ - } + + if(data[2]>16020 && data[2]<16400 && data[0]>-150 && data[0]<2 && dato[1]>150 && dato[1]<350){ + b=0; + g=1; + r=1; + }else{ + b=1; + g=1; + r=0; + } + + + } #endif \ No newline at end of file