mirror of https://github.com/rusefi/RomRaider.git
Merge
git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@723 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
parent
a4a36546a8
commit
5865c397e1
|
@ -27,11 +27,13 @@ public class UtecDataManager {
|
|||
private static int afrIndex = Integer.parseInt(UtecProperties.getProperties("utec.afrIndex")[0]);
|
||||
private static int psiIndex = Integer.parseInt(UtecProperties.getProperties("utec.psiIndex")[0]);
|
||||
private static int knockIndex = Integer.parseInt(UtecProperties.getProperties("utec.knockIndex")[0]);
|
||||
private static int loadIndex = Integer.parseInt(UtecProperties.getProperties("utec.loadIndex")[0]);
|
||||
|
||||
// Set data values to initial state
|
||||
private static double afrData = 999.0;
|
||||
private static double psiData = 999.0;
|
||||
private static double knockData = 0.0;
|
||||
private static double loadData = 0.0;
|
||||
|
||||
private static int lineCounter = 0;
|
||||
|
||||
|
@ -192,6 +194,7 @@ public class UtecDataManager {
|
|||
setAfrData(doubleData[afrIndex]);
|
||||
setPsiData(doubleData[psiIndex]);
|
||||
setKnockData(doubleData[knockIndex]);
|
||||
setLoadData(doubleData[loadIndex]);
|
||||
|
||||
Iterator iterator = UtecDataManager.getLoggerListeners().iterator();
|
||||
while(iterator.hasNext()){
|
||||
|
@ -272,10 +275,19 @@ public class UtecDataManager {
|
|||
if(knockData > UtecDataManager.knockData){
|
||||
UtecDataManager.knockData = knockData;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static double getLoadData() {
|
||||
return loadData;
|
||||
}
|
||||
|
||||
|
||||
public static void setLoadData(double loadData) {
|
||||
UtecDataManager.loadData = loadData;
|
||||
}
|
||||
|
||||
|
||||
public static double getPsiData() {
|
||||
return psiData;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue