CV3 send vout data

This commit is contained in:
YiChin
2020-05-15 09:38:46 +08:00
parent 04286e891d
commit 45e7e2d5b7
2 changed files with 8 additions and 4 deletions
@@ -26,6 +26,10 @@ static uint16_t CV3Curve(CV3Mode *CV3){
RealV2 = (int32_t)((Vout - Vin) / 500);//[1uV]
InputNotify(NOTIFY_VOLT, RealV2);
int32_t RealV;
RealV = (int32_t)(Vout / 500);//[1uV]
InputNotify(NOTIFY_IMPEDANCE, RealV);
DAC_outputV(DACOutCode);
return DACOutCode;
@@ -201,9 +205,9 @@ static void CV3_Vscan(CV3Mode *CV3){
}
int32_t RealV;
RealV = (int32_t)(Vset / 500);//[1uV]
InputNotify(NOTIFY_IMPEDANCE, RealV);
// int32_t RealV;
// RealV = (int32_t)(Vset / 500);//[1uV]
// InputNotify(NOTIFY_IMPEDANCE, RealV);
if(VmaxCounter == VminCounter){ //calculate cycle number
if(Vset == Vinit){
@@ -29,7 +29,7 @@
*/
#define BOARD_7C8C
#define BOARD_ANGUS
typedef struct _formula{