24-03-2017, 00:46
(23-03-2017, 22:30)Speedy68 Wrote: Now my Report.
That works:
Code:Soil_Data[i][1] = map(RX_Data[SoilMoist_Source[i][1] + 2], AnalogSensor_MaxVoltOut[SoilMoist_Source[i][1]], AnalogSensor_MinVoltOut[SoilMoist_Source[i][1]], 0, 100);
Code:
Soil_Data[i][1] = map(RX_Data[SoilMoist_Source[i][1] + 2], AnalogSensor_MinVoltOut[SoilMoist_Source[i][1]], AnalogSensor_MaxVoltOut[SoilMoist_Source[i][1]], 100, 0);I think both produce the same result. In one we are reversing the input values, on the other we are reversing the condition for the output values.
The important is that is working as needed.
Thank you too for the feedback.
Regards

