/*******************************************************************************
 *  metrology-calibration-template.h - MSP430i2041 distribution version
 *
 *  Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ 
 *  ALL RIGHTS RESERVED
 * 
*/

#define DEFAULT_ROOM_TEMPERATURE                    250

#define DEFAULT_V_RMS_SCALE_FACTOR_A                13428
#define DEFAULT_V_DC_ESTIMATE_A                     0x0000
#define DEFAULT_V_AC_OFFSET_A                       9
#define DEFAULT_I_RMS_SCALE_FACTOR_A                846//84341 //21777
#define DEFAULT_I_DC_ESTIMATE_A                     0x0000
#define DEFAULT_I_AC_OFFSET_A                       0
#define DEFAULT_P_SCALE_FACTOR_A                   9368
#define DEFAULT_BASE_PHASE_A_CORRECTION             4 //12

#define DEFAULT_V_RMS_SCALE_FACTOR_B                13363
#define DEFAULT_V_DC_ESTIMATE_B                    0x0001
#define DEFAULT_V_AC_OFFSET_B                       10
#define DEFAULT_I_RMS_SCALE_FACTOR_B                21740
#define DEFAULT_I_DC_ESTIMATE_B                     0x0002
#define DEFAULT_I_AC_OFFSET_B                       11
#define DEFAULT_P_SCALE_FACTOR_B                   9302
#define DEFAULT_BASE_PHASE_B_CORRECTION             3 //12

#define DEFAULT_V_RMS_SCALE_FACTOR_C                13428
#define DEFAULT_V_DC_ESTIMATE_C                    0x0003
#define DEFAULT_V_AC_OFFSET_C                       14
#define DEFAULT_I_RMS_SCALE_FACTOR_C               21777
#define DEFAULT_I_DC_ESTIMATE_C                     0x0003
#define DEFAULT_I_AC_OFFSET_C                       12
#define DEFAULT_P_SCALE_FACTOR_C                   9368
#define DEFAULT_BASE_PHASE_C_CORRECTION             4 //12

#define DEFAULT_I_RMS_SCALE_FACTOR_NEUTRAL                21740
#define DEFAULT_I_DC_ESTIMATE_NEUTRAL                     0x0002
#define DEFAULT_I_AC_OFFSET_NEUTRAL                       11
#define DEFAULT_P_SCALE_FACTOR_NEUTRAL                  9302
#define DEFAULT_BASE_NEUTRAL_PHASE_CORRECTION             4 //12


#define DEFAULT_FREQUENCY_PHASE_FACTOR              500
#define DEFAULT_FREQUENCY_GAIN_FACTOR               0

#define DEFAULT_PHASE_CORRECTION1                   0
#define DEFAULT_GAIN_CORRECTION1                    0
#define DEFAULT_PHASE_CORRECTION2                   0
#define DEFAULT_GAIN_CORRECTION2                    0
