Auberon Tatum / Mbed 2 deprecated Accel_test_LCD1Modular

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 //Modules
00002 #include "header.h"
00003 float per_old =0.895;
00004 float per_new =(1-per_old);
00005 
00006 
00007 float xsub=0;
00008 float ysub=0;
00009 float zsub=0;
00010 int menu;
00011 int i;
00012 int j;
00013 int Xa = 0;
00014 int Za = 0;
00015 int Ya = 0;
00016 float Ax2;
00017 float Ay2;
00018 float Az2;
00019 float Xund;
00020 float Yund;
00021 float Zund;
00022 
00023 float X=0;
00024 float Y=0;
00025 float Z=0;
00026         
00027 float Xave;
00028 float Yave;
00029 float Zave;
00030 float Xtemp;                        //sample hold
00031 float Xtest;
00032 float Ytemp;
00033 float Ytest;
00034 float Ztemp;
00035 float Ztest;
00036 float xball;
00037 float yball;
00038 float xout=0;
00039 float yout=0;
00040 float zout=0;
00041 long ball;
00042 long a;
00043 long b;
00044 long a2;
00045 long b2;
00046 long k;
00047 long red;
00048 long blue;
00049 long green;
00050 long col;
00051 float Xoff =0;             //CHANGE TO ZERO BALL POSITION
00052 float Yoff =0; //CHANGE TO ZERO BALL POSITION
00053 float Zoff =0; //CHANGE TO ZERO BALL POSITION
00054 float Xcal;
00055 float Ycal;
00056 float Zcal;
00057 float sumx;
00058 float sumy;
00059 float sumz;
00060 int main() {
00061 
00062     while (1) {
00063     
00064     menuscreen();    
00065 
00066     }
00067 }
00068 
00069 
00070 
00071