Code: Select all
void SerialOut(){
Serial.print("PSI: ");
Serial.print(PSI);
Serial.print(" ");
Serial.print("PumpTemp ");
Serial.print(PumpTemp);
Serial.print(" ");
Serial.print("PumpMode: ");
Serial.print(PumpMode);
Serial.print(" ");
Serial.print("RadarMode: ");
Serial.print(RadarMode);
Serial.print(" ");
Serial.print("HornMode: ");
Serial.println(HornMode);
}
Code: Select all
SerialOut(){
String space = " ";
String output = "";
output = output + "PSI: " + PSI + space + "PumpTemp: " + PumpTemp + space + "PumpMode: " + PumpMode + space + "RadarMode: " + RadarMode + space + "HornMode: " + HornMode;
Serial.println(output);
}
I know there is a random issue with the values not being defined first, but it's weird that it worked 32 times exactly then dies.
Here I was troubleshooting the new sensor when I hadn't thought about all the code that I had changed!
Also, if anyone needs an easy to use PSI sensor, I just picked one up off ebay for $30 that works like a champ. Linear output and all!