Skip to content

Commit 16de5e8

Browse files
committed
Insert pressure, temperature and precipitation
1 parent e52ef07 commit 16de5e8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

osi_environment.proto

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,31 @@ message EnvironmentalConditions
1414

1515
/// The time of day.
1616
optional TimeOfDay time_of_day = 2;
17+
18+
/// Atmospheric pressure in Pascal
19+
optional double atmospheric_pressure = 3;
20+
21+
/// Temperature in degrees Kelvin
22+
optional double temperature = 4;
23+
24+
/// Precipitation
25+
optional Precipitation precipitation = 5;
26+
27+
/// Definition of precipitation states. See https://en.wikipedia.org/wiki/Rain#Measurement
28+
enum Precipitation
29+
{
30+
// Light intensity rain, when the precipitation rate is < 2.5 mm per hour
31+
PRECIPITATION_RAIN_LITTLE = 0;
32+
33+
// Medium intensity rain, when the precipitation rate is between 2.5 mm and 10 mm per hour
34+
PRECIPITATION_RAIN_MEDIUM = 1;
35+
36+
// High intensity rain, when the precipitation rate is between 10 mm and 50 mm per hour
37+
PRECIPITATION_RAIN_HIGH = 2;
38+
39+
// Violent intensity rain, when the precipitation rate is > 50 mm per hour
40+
PRECIPITATION_RAIN_VIOLENT = 3;
41+
}
1742

1843
/// Definition of ambient illumination states.
1944
enum AmbientIllumination

0 commit comments

Comments
 (0)