@@ -38,15 +38,15 @@ public class CalibrationPoint {
38
38
private Rate mRate ;
39
39
private BUFFER_STATE mBuffer ;
40
40
private ANALOG_SCALE mScale ;
41
- private int mSelfGainCal ;
42
- private int mSystemGainCal ;
43
- private int mGainCalDifference ;
41
+ private float mReadVoltage ;
42
+ private float mNominalVoltage ;
43
+ private float mCorrectionFactor ;
44
44
45
- public CalibrationPoint (String serial , long time , double temp , Gain gain , Rate rate , BUFFER_STATE buffer , ANALOG_SCALE scale , int selfGain , int systemGain , int gainDiff ) {
46
- this (-1 , serial , time , temp , gain , rate , buffer , scale , selfGain , systemGain , gainDiff );
45
+ public CalibrationPoint (String serial , long time , double temp , Gain gain , Rate rate , BUFFER_STATE buffer , ANALOG_SCALE scale , float read , float nominal , float factor ) {
46
+ this (-1 , serial , time , temp , gain , rate , buffer , scale , read , nominal , factor );
47
47
}
48
48
49
- public CalibrationPoint (long id , String serial , long time , double temp , Gain gain , Rate rate , BUFFER_STATE buffer , ANALOG_SCALE scale , int selfGain , int systemGain , int gainDiff ) {
49
+ public CalibrationPoint (long id , String serial , long time , double temp , Gain gain , Rate rate , BUFFER_STATE buffer , ANALOG_SCALE scale , float read , float nominal , float factor ) {
50
50
mID = id ;
51
51
mSerial = serial ;
52
52
mTime = time ;
@@ -55,9 +55,9 @@ public CalibrationPoint(long id, String serial, long time, double temp, Gain gai
55
55
mRate = rate ;
56
56
mBuffer = buffer ;
57
57
mScale = scale ;
58
- mSelfGainCal = selfGain ;
59
- mSystemGainCal = systemGain ;
60
- mGainCalDifference = gainDiff ;
58
+ mReadVoltage = read ;
59
+ mNominalVoltage = nominal ;
60
+ mCorrectionFactor = factor ;
61
61
}
62
62
63
63
public ContentValues toContentValues () {
@@ -70,9 +70,9 @@ public ContentValues toContentValues() {
70
70
values .put (TekdaqcDataProviderContract .COLUMN_SCALE , mScale .scale );
71
71
// We are writing the goal here to be as exact as possible
72
72
values .put (TekdaqcDataProviderContract .COLUMN_TEMPERATURE , mTemperature );
73
- values .put (TekdaqcDataProviderContract .COLUMN_SELF_GAIN_CAL , mSelfGainCal );
74
- values .put (TekdaqcDataProviderContract .COLUMN_SYSTEM_GAIN_CAL , mSystemGainCal );
75
- values .put (TekdaqcDataProviderContract .COLUMN_GAIN_CAL_DIFF , mGainCalDifference );
73
+ values .put (TekdaqcDataProviderContract .COLUMN_READ_VOLTAGE , mReadVoltage );
74
+ values .put (TekdaqcDataProviderContract .COLUMN_NOMINAL_VOLATGE , mNominalVoltage );
75
+ values .put (TekdaqcDataProviderContract .COLUMN_CORRECTION_FACTOR , mCorrectionFactor );
76
76
return values ;
77
77
}
78
78
@@ -132,27 +132,27 @@ public void setAnalogScale(ANALOG_SCALE scale) {
132
132
mScale = scale ;
133
133
}
134
134
135
- public int getSelfGainCal () {
136
- return mSelfGainCal ;
135
+ public float getReadVoltage () {
136
+ return mReadVoltage ;
137
137
}
138
138
139
- public void setSelfGainCal ( int cal ) {
140
- mSelfGainCal = cal ;
139
+ public void setReadVoltage ( float volt ) {
140
+ mReadVoltage = volt ;
141
141
}
142
142
143
- public int getSystemGainCal () {
144
- return mSystemGainCal ;
143
+ public float getNominalVoltage () {
144
+ return mNominalVoltage ;
145
145
}
146
146
147
- public void setSystemGainCal ( int cal ) {
148
- mSystemGainCal = cal ;
147
+ public void setNominalVoltage ( float volt ) {
148
+ mNominalVoltage = volt ;
149
149
}
150
150
151
- public int getGainCalDifference () {
152
- return mGainCalDifference ;
151
+ public float getCorrectionFactor () {
152
+ return mCorrectionFactor ;
153
153
}
154
154
155
- public void setGainCalDifference ( int difference ) {
156
- mGainCalDifference = difference ;
155
+ public void setCorrectionFactor ( float factor ) {
156
+ mCorrectionFactor = factor ;
157
157
}
158
158
}
0 commit comments