BMP3XX.force_altitude
You're seeing just the function
force_altitude
, go back to BMP3XX module for more information.
Specs
force_altitude(GenServer.server(), number()) :: :ok | {:error, any()}
Force the altitude to a known value
Altitude calculations depend on the accuracy of the sea level pressure estimate. Since the sea level pressure changes based on the weather, it needs to be kept up to date or altitude measurements can be pretty far off. Another way to set the sea level pressure is to report a known altitude. Call this function with the current altitude in meters.
This function returns an error if the attempt to sample the current barometric pressure fails.