modify RT
This commit is contained in:
+6
-9
@@ -32,12 +32,9 @@ static void ZT_Plot(RTMode *RT) {
|
||||
// ReadVolt(SPIVolt);
|
||||
// VoltMeasure = (uint16_t) (SPIVolt[0] << 8) | (uint16_t) (SPIVolt[1]);
|
||||
// volt_32 = DecodeADCVolt(VoltMeasure)*1e4;
|
||||
resister_32 = (volt_32 / current_32) / 10;
|
||||
resister_32 = volt_32 / current_32;
|
||||
volt_32 = volt_32 / 1e6; //mV
|
||||
|
||||
if(resister_32 <= 12){
|
||||
resister_32 = 10;
|
||||
}
|
||||
|
||||
NotifyVolt[0] = (uint8_t) (volt_32 >> 24);
|
||||
NotifyVolt[1] = (uint8_t) ((volt_32 & 0x00FF0000) >> 16);
|
||||
@@ -54,11 +51,11 @@ static void ZT_Plot(RTMode *RT) {
|
||||
NotifyImpedance[2] = (uint8_t) ((resister_32 & 0x0000FF00) >> 8);
|
||||
NotifyImpedance[3] = (uint8_t) (resister_32 & 0x000000FF);
|
||||
|
||||
/* Elite 10 = 100R
|
||||
Elite 100 = 1KR
|
||||
Elite 1000 = 10KR
|
||||
Elite 10000 = 100KR
|
||||
Elite 100000 = 1MR
|
||||
/* Elite 100 = 100R
|
||||
Elite 1000 = 1KR
|
||||
Elite 10000 = 10KR
|
||||
Elite 100000 = 100KR
|
||||
Elite 1000000 = 1MR
|
||||
*/
|
||||
|
||||
// set ADC GAIN
|
||||
|
||||
+3
-3
@@ -4,9 +4,9 @@
|
||||
|
||||
#define VERSION_DATE_YEAR 20
|
||||
#define VERSION_DATE_MONTH 3
|
||||
#define VERSION_DATE_DAY 10
|
||||
#define VERSION_DATE_HOUR 16
|
||||
#define VERSION_DATE_MINUTE 49
|
||||
#define VERSION_DATE_DAY 11
|
||||
#define VERSION_DATE_HOUR 11
|
||||
#define VERSION_DATE_MINUTE 15
|
||||
|
||||
// this is NOT the version hash !!
|
||||
// it's the last version hash
|
||||
|
||||
Reference in New Issue
Block a user