RT done, UI should X1e5 for every resister value
This commit is contained in:
+3
-4
@@ -21,11 +21,10 @@ static void ZT_Plot() {
|
||||
|
||||
current_32 = AutoGainReadCurrent(SPICurrent);
|
||||
volt_32 = User2Real(INSTRUCTION.VoltConstant)*1e4;
|
||||
// volt_32 = ReadVolt(SPIVolt);
|
||||
resister_32 = volt_32 / current_32;
|
||||
|
||||
// CurrentMeasure = (uint16_t) (SPICurrent[0] << 8) | (uint16_t) (SPICurrent[1]);
|
||||
// ReadVolt(SPIVolt);
|
||||
// VoltMeasure = (uint16_t) (SPIVolt[0] << 8) | (uint16_t) (SPIVolt[1]);
|
||||
// volt_32 = DecodeADCVolt(VoltMeasure)*1e4;
|
||||
resister_32 = volt_32 / current_32;
|
||||
|
||||
NotifyVolt[0] = (uint8_t) (volt_32 >> 24);
|
||||
NotifyVolt[1] = (uint8_t) ((volt_32 & 0x00FF0000) >> 16);
|
||||
|
||||
Reference in New Issue
Block a user