Even if your calibration functions work, you don't do anything with the resulting scale factors, and the offsets generated by the calls to .tare aren't saved.
Try assigning the 2 offsets (from .get_offset after each .tare) and 2 scale factors (from your functions) to variables and then call .set_scale and .set_offset prior to each .get_units
float sub_calibration1(float calibration_factor){
Serial.println("Load Cell 1 Calibration");
Serial.println("Remove all weight from scale");
Serial.println("After readings begin, place known weight on load cell");
Serial.println("Press + or a to increase calibration factor");
Serial.println("Press - or z to decrase calibration factor");
Serial.println("Press s to start calibration");
Serial.println("Press f to finish calibration");
do{
if(Serial.available()){
temp=Serial.read();
}
delay(500);
}while(temp!='s');
scale1.set_scale();
scale1.tare();//Reset the scale to 0
do{
scale1.set_scale(calibration_factor); //Adjust to this calibration factor
Serial.print("Reading:");
Serial.print(scale1.get_units(5),3);
Serial.print("g");
Serial.print("calibration_factor:");
Serial.print(calibration_factor); //Serial.print();
if(Serial.available())
{
temp=Serial.read();
if(temp=='+'||temp=='a')
calibration_factor+=10;
else if(temp=='-'||temp=='z')
calibration_factor-=10;
}
delay(100);
}while(temp!='f');
return calibration_factor;
}
float sub_calibration2(float calibration_factor){
Serial.println("Load Cell 2 Calibration");
Serial.println("Remove all weight from scale");
Serial.println("After readings begin, place known weight on load cell");
Serial.println("Press + or a to increase calibration factor");
Serial.println("Press - or z to decrase calibration factor");
Serial.println("Press s to start calibration");
Serial.println("Press f to finish calibration");
do{
if(Serial.available()){
temp=Serial.read();
}
delay(500);
}while(temp!='s');
scale2.set_scale();
scale2.tare(); //Reset the scale to 0
do{
scale2.set_scale(calibration_factor); //Adjust to this calibration factor
Serial.print("Reading:");
Serial.print(scale2.get_units(5),3);
Serial.print("g");
Serial.print("calibration_factor:");
Serial.print(calibration_factor); //Serial.print();
if(Serial.available())
{
temp=Serial.read();
if(temp=='+'||temp=='a')
calibration_factor+=10;
else if(temp=='-'||temp=='z')
calibration_factor-=10;
}
delay(100);
}while(temp!='f');
return calibration_factor;
}
void sub_measure() {
Serial.print("Measurement#");
Serial.println(n);
Serial.println("Move the table and press z to make a new single date set");
Serial.println("Press x When finish data collection");
Serial.println("Force1(N) Force2(N)");
do{
if(Serial.available())
{
temp=Serial.read();
if(temp=='z')
{
Serial.print(scale1.get_units(10)9.811E-3,2);
Serial.print(" ");
Serial.println(scale2.get_units(10)9.811E-3,2);
}
}
delay(200);
}while(temp!='x');
temp=' ';
Serial.println();
n++;
}