Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,7 @@ public static int uncalibrateMspAdcChannelFromVolts(double unCalData){
}

public static double calibrateU12AdcValueToMillivolts(double uncalibratedData, double offset, double vRefP, double gain){
// double calibratedData = (uncalibratedData-offset) * (((vRefP*1000)/gain)/4095);
// return calibratedData;
return calibrateU12AdcValueToVolts(uncalibratedData, offset, vRefP, gain)*1000;
return calibrateU12AdcValueToVolts(uncalibratedData, offset, vRefP*1000, gain);
}

public static double calibrateU12AdcValueToVolts(double uncalibratedData, double offset, double vRefP, double gain){
Expand Down