GithubHelp home page GithubHelp logo

Comments (6)

simonbuehler avatar simonbuehler commented on June 2, 2024 2

great advancements!

yes , the jumping should be avoided as up to 25 meters every 200ms is not natural, this would trigger red flags in pogo

val x = (rand.nextInt(50) - 25).toDouble()

rather

  • keep a position value of the current set "real location"
  • keep a movement direction value
  • generate a random step size between 0 and ~ 2m
  • Calculate new direction by changing current movement direction my small random amount
  • when distance of new randomized position is getting near the accuracy max make the direction head more to the center
  • set new calculated "fuzzy" position but keep "real location"

this way the fuzzy position should oscillate more naturally around the set position

from gpssetter.

Android1500 avatar Android1500 commented on June 2, 2024 1

I will add these features in upcomming release

from gpssetter.

simonbuehler avatar simonbuehler commented on June 2, 2024

as a sidenote
when a future version offers a joystick like control, a direction/heading and speed values would be needed

from gpssetter.

Rognils avatar Rognils commented on June 2, 2024

SimonBuehler, you summed it up exactly the way I couldn't describe with words. Thanks! Make it more naturally.

from gpssetter.

Android1500 avatar Android1500 commented on June 2, 2024

great advancements!

yes , the jumping should be avoided as up to 25 meters every 200ms is not natural, this would trigger red flags in pogo

val x = (rand.nextInt(50) - 25).toDouble()

rather

  • keep a position value of the current set "real location"
  • keep a movement direction value
  • generate a random step size between 0 and ~ 2m
  • Calculate new direction by changing current movement direction my small random amount
  • when distance of new randomized position is getting near the accuracy max make the direction head more to the center
  • set new calculated "fuzzy" position but keep "real location"

this way the fuzzy position should oscillate more naturally around the set position

Thanks for your suggestion can you push a pr with implement of your suggestion.

from gpssetter.

RevealedSoulEven avatar RevealedSoulEven commented on June 2, 2024

Also please consider adding speed hook to set gps speed like 70kmph speed for gps

from gpssetter.

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.