
LCD Accelerometer with interrupt fault
main.cpp
- Committer:
- Aubs
- Date:
- 2010-05-12
- Revision:
- 0:298e8a54dc2d
File content as of revision 0:298e8a54dc2d:
//Modules #include "header.h" float per_old =0.895; float per_new =(1-per_old); float xsub=0; float ysub=0; float zsub=0; int menu; int i; int j; int Xa = 0; int Za = 0; int Ya = 0; float Ax2; float Ay2; float Az2; float Xund; float Yund; float Zund; float X=0; float Y=0; float Z=0; float Xave; float Yave; float Zave; float Xtemp; //sample hold float Xtest; float Ytemp; float Ytest; float Ztemp; float Ztest; float xball; float yball; float xout=0; float yout=0; float zout=0; long ball; long a; long b; long a2; long b2; long k; long red; long blue; long green; long col; float Xoff =0; //CHANGE TO ZERO BALL POSITION float Yoff =0; //CHANGE TO ZERO BALL POSITION float Zoff =0; //CHANGE TO ZERO BALL POSITION float Xcal; float Ycal; float Zcal; float sumx; float sumy; float sumz; int main() { while (1) { menuscreen(); } }