Skip to content

Commit

Permalink
Upd
Browse files Browse the repository at this point in the history
  • Loading branch information
FredM67 committed Nov 14, 2023
1 parent a6a660b commit 8522341
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dev/cal_CTx_v_meter/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ Polarities polarityOfMostRecentVsample[NO_OF_PHASES]; /**< for zero-crossing
Polarities polarityConfirmed[NO_OF_PHASES]; /**< for zero-crossing detection */
Polarities polarityConfirmedOfLastSampleV[NO_OF_PHASES]; /**< for zero-crossing detection */

constexpr double MICROSPERSEC{ 1.0e6 };

constexpr int16_t ADCBits{ 10 }; // 10 for the Arduino Uno.
constexpr int16_t ADCDuration{ 104 }; // Time in microseconds for one ADC conversion = 104 for 16 MHz clock

// Calibration values
//-------------------
// Three calibration values are used in this sketch: f_powerCal, f_phaseCal and f_voltageCal.
Expand Down

0 comments on commit 8522341

Please sign in to comment.