I may have figured out a fix for the voltage issue. You should be able to replace the “
void iBUStelemetry::setSensorMeasurement(byte adr, float value){
switch(sensorType[adr]){
case 0:
sensorValue[adr] = (int)value100.0;
break;
case 1:
sensorValue[adr] = (int)(value10.0)+400;
break;
case 2:
sensorValue[adr] = (int)value;
break;
}
statement with
void iBUStelemetry::setSensorMeasurement(byte adr, float value){
switch(sensorType[adr]){
case 0:
sensorValue[adr] = (float)value100.0;
break;
case 1:
sensorValue[adr] = (float)(value10.0)+400;
break;
case 2:
sensorValue[adr] = (float)value;
break;
}
That should fix your issue. Keep in mind that I haven’t tried it, but from a code standpoint, that should fix the weird voltages.