Program which has to be implemented to the MLX Mbed for micro tesla meter bench version.

Dependencies:   C12832 mbed

Fork of MicroteslameterV2 by Olivier Dubrulle

Committer:
zbobze
Date:
Mon Aug 21 13:50:02 2017 +0000
Revision:
1:50fbbe10dea4
Parent:
0:d35d9bdef147
program designed to be implemented on the Mlx MBed for remote tesla meter.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
odu 0:d35d9bdef147 1 void setColor(int intensity=100);
odu 0:d35d9bdef147 2 void init(void);
odu 0:d35d9bdef147 3 float calculateModulus(float X, float Y, float Z);
odu 0:d35d9bdef147 4 float normalize(float field); //normalize the field versus the field limit to have something in percent of field limit
odu 0:d35d9bdef147 5 void startZeroing();
odu 0:d35d9bdef147 6 void blink();
odu 0:d35d9bdef147 7 float getGainXY(int GAIN_SEL,int RES_XYZ);
odu 0:d35d9bdef147 8 float getGainZ(int GAIN_SEL,int RES_XYZ);
odu 0:d35d9bdef147 9 void MeasureXYZT(float *X,float *Y,float *Z, float *T);
zbobze 1:50fbbe10dea4 10 void changeDisplay();
zbobze 1:50fbbe10dea4 11 void updateLCD_1(float X,float Y,float Z,float modulus);
zbobze 1:50fbbe10dea4 12 void updateLCD_2(float X,float Y,float Z,float modulus);
zbobze 1:50fbbe10dea4 13 void updateLCD_3(float SaveData0, float SaveData1 ,float SaveData2 ,float modulus);
odu 0:d35d9bdef147 14 void CorrectXYZ(float *X,float *Y,float *Z); // correct for zeroing and convert LSB in uT
zbobze 1:50fbbe10dea4 15 bool isConnected (float *X, float *Y,float *Z,float *X2, float *Y2,float *Z2);
zbobze 1:50fbbe10dea4 16 void saveData ();
zbobze 1:50fbbe10dea4 17
odu 0:d35d9bdef147 18
odu 0:d35d9bdef147 19
odu 0:d35d9bdef147 20 //define warning sign bitmap
odu 0:d35d9bdef147 21 static char warning[] = {
odu 0:d35d9bdef147 22 0x01 , 0x00 ,
odu 0:d35d9bdef147 23 0x02 , 0x80 ,
odu 0:d35d9bdef147 24 0x05 , 0x40 ,
odu 0:d35d9bdef147 25 0x09 , 0x20 ,
odu 0:d35d9bdef147 26 0x11 , 0x10 ,
odu 0:d35d9bdef147 27 0x21 , 0x08 ,
odu 0:d35d9bdef147 28 0x40 , 0x04 ,
odu 0:d35d9bdef147 29 0x81 , 0x02 ,
odu 0:d35d9bdef147 30 0xFF , 0xFF ,
odu 0:d35d9bdef147 31
odu 0:d35d9bdef147 32 };
odu 0:d35d9bdef147 33
odu 0:d35d9bdef147 34 Bitmap bitmWarning={
odu 0:d35d9bdef147 35 16, // XSize
odu 0:d35d9bdef147 36 9, // YSize
odu 0:d35d9bdef147 37 2, // Bytes in Line
odu 0:d35d9bdef147 38 warning, // Pointer to picture data
odu 0:d35d9bdef147 39 };