Skip to content

Add Altitude Setter #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 30, 2023
Merged

Add Altitude Setter #39

merged 4 commits into from
May 30, 2023

Conversation

somenice
Copy link

Trying this again. Adding Altitude setter.
Formatted with black

Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

I tested it successfully on a CLUE with the simpletest, and modified it to set the altitude instead of the sea_level_pressure. I do not know any of the math or principals behind the altitude <-> pressure conversion. But as far as I could tell the information that I'm getting out of the sensor is pretty accurate compared to data from weather.us and elevation provided by freemaptools.com/elevation-finder.htm for my approximate location.

@FoamyGuy FoamyGuy merged commit b754384 into adafruit:main May 30, 2023
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request May 31, 2023
Updating https://github.com/adafruit/Adafruit_CircuitPython_BMP280 to 3.3.0 from 3.2.20:
  > Merge pull request adafruit/Adafruit_CircuitPython_BMP280#39 from somenice/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_BNO08X to 1.2.3 from 1.2.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_BNO08x#42 from rrahkola/dev/add_type_attributes

Updating https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k to 2.5.3 from 2.5.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_Wiznet5k#117 from tekktrik/dev/fix-packaging

Updating https://github.com/adafruit/Adafruit_CircuitPython_Dash_Dis to 1.1.16 from 1.1.15:
  > Merge pull request adafruit/Adafruit_CircuitPython_Dash_Dis#9 from julianaklulo/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_Requests to 1.14.0 from 1.13.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_Requests#132 from FoamyGuy/allow_redirects

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants