Function ambient_pressure_word
Source pub fn ambient_pressure_word(pascals: u32) -> u16
Expand description
Encodes an ambient pressure as the set_ambient_pressure word.
Table 17: word = ambient P [Pa] / 100, so the word is the pressure in
hectopascals.
§Arguments
pascals - the ambient pressure in pascals.
§Returns
The 16-bit pressure word, truncated to whole hectopascals.