fixed front end board temp

This commit is contained in:
Dhanya Maliakal 2017-07-25 13:55:27 +02:00
parent 04165a9da8
commit 9d8faae375
8 changed files with 25 additions and 20 deletions

View File

@ -1115,7 +1115,7 @@ int Beb_GetBebFPGATemp()
}else{
//read data
ret = Beb_Read32(csp0base, FPGA_TEMP_OFFSET);
temperature = ((((float)(ret)/65536.0f)/0.00198421639f ) - 273.15f); // Static conversation, copied from xps sysmon standalone driver
temperature = ((((float)(ret)/65536.0f)/0.00198421639f ) - 273.15f)*1000; // Static conversation, copied from xps sysmon standalone driver
//close file pointer
Beb_close(fd,csp0base);
}

View File

@ -1893,6 +1893,9 @@ int Feb_Control_PrintCorrectedValues(){
}
//So if software says now 40.00 you neeed to convert to mdegrees 40000(call it A1) and then
//A1/65536/0.00198421639-273.15
int Feb_Control_GetLeftFPGATemp(){
unsigned int temperature=0;
if(Module_TopAddressIsValid(&modules[1]))
@ -1900,6 +1903,7 @@ int Feb_Control_GetLeftFPGATemp(){
else
Feb_Interface_ReadRegister(Module_GetBottomLeftAddress (&modules[1]),FEB_REG_STATUS, &temperature);
temperature = temperature >> 16;
temperature = ((((float)(temperature)/65536.0f)/0.00198421639f ) - 273.15f)*1000; // Static conversation, copied from xps sysmon standalone driver
//division done in client to send int over network
return (int)temperature;
}
@ -1911,6 +1915,7 @@ int Feb_Control_GetRightFPGATemp(){
else
Feb_Interface_ReadRegister(Module_GetBottomRightAddress (&modules[1]),FEB_REG_STATUS, &temperature);
temperature = temperature >> 16;
temperature = ((((float)(temperature)/65536.0f)/0.00198421639f ) - 273.15f)*1000; // Static conversation, copied from xps sysmon standalone driver
//division done in client to send int over network
return (int)temperature;
}

View File

@ -1,9 +1,9 @@
Path: slsDetectorsPackage/slsDetectorSoftware/eigerDetectorServer
URL: origin git@git.psi.ch:sls_detectors_software/sls_detector_software.git
Repository Root: origin git@git.psi.ch:sls_detectors_software/sls_detector_software.git
Repsitory UUID: 9f1b82c18ab0893d65bfadeb646b8ea244614632
Revision: 294
Branch: developer
Repsitory UUID: d3b24894af8a588e6945240c3b80c2b7024608c4
Revision: 295
Branch: 3.0-rc
Last Changed Author: Dhanya_Maliakal
Last Changed Rev: 1443
Last Changed Date: 2017-07-10 10:50:39.000000002 +0200 ./Makefile
Last Changed Rev: 1448
Last Changed Date: 2017-07-25 13:53:46.000000002 +0200 ./Beb.c

View File

@ -1,11 +1,11 @@
//#define SVNPATH ""
#define SVNURL "git@git.psi.ch:sls_detectors_software/sls_detector_software.git"
//#define SVNREPPATH ""
#define SVNREPUUID "9f1b82c18ab0893d65bfadeb646b8ea244614632"
//#define SVNREV 0x1443
#define SVNREPUUID "d3b24894af8a588e6945240c3b80c2b7024608c4"
//#define SVNREV 0x1448
//#define SVNKIND ""
//#define SVNSCHED ""
#define SVNAUTH "Dhanya_Maliakal"
#define SVNREV 0x1443
#define SVNDATE 0x20170710
#define SVNREV 0x1448
#define SVNDATE 0x20170725
//

View File

@ -715,7 +715,7 @@ int getADC(enum ADCINDEX ind, int imod){
switch(ind){
case TEMP_FPGA:
retval=getBebFPGATemp()*1000;
retval=getBebFPGATemp();
break;
case TEMP_FPGAFEBL:
retval=Feb_Control_GetLeftFPGATemp();

View File

@ -1,9 +1,9 @@
Path: slsDetectorsPackage/slsDetectorSoftware
URL: origin git@git.psi.ch:sls_detectors_software/sls_detector_software.git
Repository Root: origin git@git.psi.ch:sls_detectors_software/sls_detector_software.git
Repsitory UUID: 5380c93aa2acce275be11dd519cb49ad2a5a15d5
Revision: 1442
Branch: developer
Repsitory UUID: d3b24894af8a588e6945240c3b80c2b7024608c4
Revision: 1443
Branch: 3.0-rc
Last Changed Author: Dhanya_Maliakal
Last Changed Rev: 1447
Last Changed Date: 2017-07-13 14:40:24.000000002 +0200 ./threadFiles/ThreadPool.o
Last Changed Rev: 1448
Last Changed Date: 2017-07-25 12:31:20.000000002 +0200 ./threadFiles/ThreadPool.o

View File

@ -1,11 +1,11 @@
//#define SVNPATH ""
#define SVNURLLIB "git@git.psi.ch:sls_detectors_software/sls_detector_software.git"
//#define SVNREPPATH ""
#define SVNREPUUIDLIB "5380c93aa2acce275be11dd519cb49ad2a5a15d5"
//#define SVNREV 0x1447
#define SVNREPUUIDLIB "d3b24894af8a588e6945240c3b80c2b7024608c4"
//#define SVNREV 0x1448
//#define SVNKIND ""
//#define SVNSCHED ""
#define SVNAUTHLIB "Dhanya_Maliakal"
#define SVNREVLIB 0x1447
#define SVNDATELIB 0x20170713
#define SVNREVLIB 0x1448
#define SVNDATELIB 0x20170725
//