1
0
forked from s425077/PotatoPlan

Soil properites

This commit is contained in:
BOTLester 2020-05-06 22:47:56 +02:00
parent 3bae81f270
commit d4acf1cc78

View File

@ -11,7 +11,7 @@ class SoilProperties
public string soilType = "potato"; public string soilType = "potato";
public float Temparature; public float Temperature;
public float Humidity; public float Humidity;
public float Moisture; public float Moisture;
public float Nitrogen; public float Nitrogen;
@ -20,12 +20,12 @@ class SoilProperties
public void setSoilProperties() public void setSoilProperties()
{ {
Temparature = GetRandomNumber(22, 30); Temperature = GetRandomNumber(22, 30);
Humidity = GetRandomNumber(1, 5); Humidity = Temperature * GetRandomNumber(1.9, 2.1);
Moisture = GetRandomNumber(1, 10); Moisture = GetRandomNumber(20, 70);
Nitrogen = GetRandomNumber(0.5 , 1); Nitrogen = GetRandomNumber(4 , 55);
Potassium = GetRandomNumber(5, 20); Potassium = GetRandomNumber(0, 28);
Phosphorous = GetRandomNumber(4, 50); Phosphorous = GetRandomNumber(0, 60);
} }
public float GetRandomNumber(double minimum, double maximum) public float GetRandomNumber(double minimum, double maximum)