modify RT

This commit is contained in:
YiChin
2020-03-11 13:52:35 +08:00
parent 8480f60266
commit dff6c0a9e2
2 changed files with 12 additions and 4 deletions
@@ -28,12 +28,13 @@ static void ZT_Plot(RTMode *RT) {
}
volt_32 = User2Real(INSTRUCTION.VoltConstant)*1e5;
volt_32 = User2Real(INSTRUCTION.VoltConstant)*1e6;
// ReadVolt(SPIVolt);
// VoltMeasure = (uint16_t) (SPIVolt[0] << 8) | (uint16_t) (SPIVolt[1]);
// volt_32 = DecodeADCVolt(VoltMeasure)*1e4;
resister_32 = volt_32 / current_32;
volt_32 = volt_32 / 1e2; //uV
volt_32 = volt_32 / 1e3; //uV
NotifyVolt[0] = (uint8_t) (volt_32 >> 24);
NotifyVolt[1] = (uint8_t) ((volt_32 & 0x00FF0000) >> 16);
@@ -50,6 +51,13 @@ static void ZT_Plot(RTMode *RT) {
NotifyImpedance[2] = (uint8_t) ((resister_32 & 0x0000FF00) >> 8);
NotifyImpedance[3] = (uint8_t) (resister_32 & 0x000000FF);
/* Elite 100 = 100R
Elite 1000 = 1KR
Elite 10000 = 10KR
Elite 100000 = 100KR
Elite 1000000 = 1MR
*/
// set ADC GAIN
// if(INSTRUCTION.ResisterMeter == RESISTER_METER_LARGE){
// INSTRUCTION.ADCGainLevel = GAIN_200R;
@@ -5,8 +5,8 @@
#define VERSION_DATE_YEAR 20
#define VERSION_DATE_MONTH 3
#define VERSION_DATE_DAY 11
#define VERSION_DATE_HOUR 12
#define VERSION_DATE_MINUTE 0
#define VERSION_DATE_HOUR 13
#define VERSION_DATE_MINUTE 52
// this is NOT the version hash !!
// it's the last version hash