Code Monkey home page Code Monkey logo

Comments (17)

aw-bib avatar aw-bib commented on July 28, 2024 1

Note that it might be easier to know the current sea level pressure at your location (e.g. by some official, calibrated measurement) then the correct altitude. So it would be great if one could use this value instead of altitude.

Additionally, a setting "I stay at the current altitude" would be nice. (There are some activities that happen at sea level, or at lake level e.g. ;)

from trail-sense.

kylecorry31 avatar kylecorry31 commented on July 28, 2024 1

Yeah,

I can do the compass calibration technique where you rotate your phone to calibrate.

Also, you will be able to use the declination calibration to adjust the compass of it is still inaccurate

from trail-sense.

kylecorry31 avatar kylecorry31 commented on July 28, 2024 1

I'm also going to change the elevation correction setting to be called something like convert elevation to MSL (mean sea level), which is actually what it's doing (GPS uses wgs84). I can make that setting not disabled when auto location is disabled so that the setting it factors it into the set override by GPS button.

from trail-sense.

aw-bib avatar aw-bib commented on July 28, 2024 1

I would love to use something like DEM to allow that - may be too big of a file though

I wonder if one could rely on files from other apps? E.g. Osmand should use this for hill shading. Similar argument would go for OruxMaps. Maybe one coIuld share the data file? Use it if it exists anway kind of logic.

from trail-sense.

kylecorry31 avatar kylecorry31 commented on July 28, 2024

I think there will be a few settings around this, such as when you enter pressure/altitude you can set it as constant (altitude), dynamic (sets the altitude as a baseline, but it can change - need to come up with a better name), or automatic (uses GPS for altitude)

from trail-sense.

kylecorry31 avatar kylecorry31 commented on July 28, 2024

This should clear up what I mean:

Settings for altitude
(Disabled if weather monitoring if off)

  • Initial altitude (Recorded once - at time of changing this setting, and used as a baseline)
    • Manual
      • Enter sea level pressure (stores as elevation)
      • Enter elevation
    • Automatic
      • GPS (Default)
      • Barometer (stores as elevation)
  • Auto calibration
    • Off (does not use GPS/barometer and will keep altitude constant to what was entered above)
    • On
      • GPS (Records GPS elevation in background - what currently happens) (Default)
      • Barometer (Uses barometer to adjust the initial altitude, a variant of the current algorithm which only factors in rapid barometric changes to avoid drift)

from trail-sense.

kylecorry31 avatar kylecorry31 commented on July 28, 2024

Settings for declination

  • Initial declination
    • Manual
      • From lat/lng (stores as degrees)
      • From degrees
    • Automatic (Default)
  • Auto calibration
    • Off (Will not use GPS to update declination)
    • On (Will use GPS to update declination) (Default)

from trail-sense.

kylecorry31 avatar kylecorry31 commented on July 28, 2024

Settings for location

  • Location
    • Manual (from lat/lng - with a button to use current GPS location, like the beacon screen)
    • Automatic (Default)

Note: the GPS location is only used on the navigation and astronomy tabs.

Setting GPS to manual will disable the beacons (would there be a reason why they should be enabled here? I can't envision that navigation without GPS would be useful since moving will change the direction to the beacons, and it wouldn't be reflected in the app).

Anything that uses the GPS location (ex. declination, astronomical times) will respect the value set here.

from trail-sense.

kylecorry31 avatar kylecorry31 commented on July 28, 2024

The auto-calibration values will be available directly on the settings screen, while the initial values will be set on a separate page accessible from the settings tab.

from trail-sense.

kylecorry31 avatar kylecorry31 commented on July 28, 2024

Cached properties needed:

  • Last altitude (exists)
  • Last location (exists)
  • Last declination

(FYI, I'm putting some of this information here for me to refer back to when implementing this, but feel free to comment on any of it)

from trail-sense.

kylecorry31 avatar kylecorry31 commented on July 28, 2024

Flow for the altitude / declination will be:

  1. Go to settings page
  2. Scroll to calibration section
  3. Click calibrate X (where X is altitude or declination)
  4. Opens initial value page
  5. Select from manual or automatic
  6. Enter the initial value (ex. manual elevation or select GPS)
  7. Select update policy (auto calibration)
  8. Return to settings screen - you can see the last stored value (if update policy is fixed, else 'Auto updates') and the update policy, which can be adjusted directly on the settings screen

Flow for the GPS will be:

  1. Go to settings page
  2. Scroll to calibration section
  3. Click GPS update policy
  4. Opens initial value page
  5. Select from fixed or automatic
  6. If fixed is clicked, enter the current location (similar page to the drop beacon page)
  7. Return to settings screen - you can see the last stored value (if update policy is fixed, else 'Auto updates')

from trail-sense.

swedneck avatar swedneck commented on July 28, 2024

Would it be possible to also manually calibrate the compass?
Sometimes it just thinks north is completely the wrong direction, and it would be nice to be able to force calibrate it using some other method of finding north.

Perhaps method 2 in this article could even be integrated for semi-automatic calibration: https://www.wikihow.com/Find-True-North-Without-a-Compass

from trail-sense.

kylecorry31 avatar kylecorry31 commented on July 28, 2024

FYI, this is a large feature and I don't have much time the next few weeks, so I am going to have to push the delivery of this further out

from trail-sense.

kylecorry31 avatar kylecorry31 commented on July 28, 2024

(not ready for release yet - hopefully next week)
Screenshot_1598712390

Screenshot_1598721765

from trail-sense.

kylecorry31 avatar kylecorry31 commented on July 28, 2024

Almost done with this - going to do some more testing tomorrow and then send out a new debug build, release likely next week - have a few more things I need to include in it.

from trail-sense.

aw-bib avatar aw-bib commented on July 28, 2024

May I ask wrt altitude correction: as mentioned above from a practical point of view it might be easier to know the current sea level pressure from some calibrated official source. Would this end up in set overwrite from barometer? Also you mentioned in the discussion some table used to map GPS hights. This would end up in set overwrite from GPS?

from trail-sense.

kylecorry31 avatar kylecorry31 commented on July 28, 2024

So the sea level entry does come from set from barometer (I should probably rename that or add some text to avoid confusion)

The altitude correction does not get applied using the set from GPS - that falls under the set altitude correction setting and only applies when the altitude is set to auto. The table only include the difference between GPS location and actual, so I can't use them as a lookup (though in the future I would love to use something like DEM to allow that - may be too big of a file though)

from trail-sense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.