PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Add altitude to start "location".

Open sediyama opened this issue 10 years ago • 2 comments

Expected Behavior

The bot should start at a plausible altitude.

Actual Behavior

The bot uses the X and Y coordinate an a default altitude of 8.0. There is no config option to set the altitude.

Output when issue occurred

The first step is not a real world movement, the bot Jumps from 8.0 to 814 from the same X and Y coordinate at my city, for instance:

2016-08-23 14:29:06,653 [FollowSpiral] [INFO] [position_update] Walking from (-21.139788293283125, -44.27281162751454, 8.0) to (-21.139788293283125, -44.27281162751454, 814.3644616750726) (0.0 m) 2016-08-23 14:29:07,444 [FollowSpiral] [INFO] [position_update] Walking from (-21.13976787364158, -44.27280583256709, 581.6114559948059) to (-21.139156383443474, -44.27281162751454, 822.08608593426) (67.9972716218 m)

Steps to Reproduce

Start a Bot with LOCATION set at any location at least a few meters above the sea level.

sediyama avatar Aug 23 '16 17:08 sediyama

"location": "42.023242, -93.646352, 500.0",

mjmadsen avatar Aug 23 '16 17:08 mjmadsen

https://github.com/PokemonGoF/PokemonGo-Bot/blob/master/configs/config.json.example#L193

"gps_default_altitude": 124.0,

Walking from (XX.64975234015611, XX.811034450351837, 123.71106991529021) Walking from (XX.649789105782766, XX.81105160182908, 123.62238498739134)

"alt_min": 90,
"alt_max": 130,

maxprzemo avatar Aug 23 '16 17:08 maxprzemo