Skip to content
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

Small fixes for altitude #4265

Merged
merged 9 commits into from
Aug 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions configs/config.json.cluster.example
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@
},
"walk_max": 4.16,
"walk_min": 2.16,
"alt_min": 0.75,
"alt_max": 2.5,
"alt_min": 500,
"alt_max": 1000,
"debug": false,
"test": false,
"health_record": true,
Expand Down
4 changes: 2 additions & 2 deletions configs/config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@
},
"walk_max": 4.16,
"walk_min": 2.16,
"alt_min": 0.75,
"alt_max": 2.5,
"alt_min": 500,
"alt_max": 1000,
"debug": false,
"test": false,
"health_record": true,
Expand Down
4 changes: 2 additions & 2 deletions configs/config.json.map.example
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@
},
"walk_max": 4.16,
"walk_min": 2.16,
"alt_min": 0.75,
"alt_max": 2.5,
"alt_min": 500,
"alt_max": 1000,
"debug": false,
"test": false,
"health_record": true,
Expand Down
4 changes: 2 additions & 2 deletions configs/config.json.optimizer.example
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@
},
"walk_max": 4.16,
"walk_min": 2.16,
"alt_min": 0.75,
"alt_max": 2.5,
"alt_min": 500,
"alt_max": 1000,
"debug": false,
"test": false,
"health_record": true,
Expand Down
4 changes: 2 additions & 2 deletions configs/config.json.path.example
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@
},
"walk_max": 4.16,
"walk_min": 2.16,
"alt_min": 0.75,
"alt_max": 2.5,
"alt_min": 500,
"alt_max": 1000,
"debug": false,
"test": false,
"health_record": true,
Expand Down
4 changes: 2 additions & 2 deletions configs/config.json.pokemon.example
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@
},
"walk_max": 4.16,
"walk_min": 2.16,
"alt_min": 0.75,
"alt_max": 2.5,
"alt_min": 500,
"alt_max": 1000,
"debug": false,
"test": false,
"health_record": true,
Expand Down
4 changes: 2 additions & 2 deletions pokecli.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,15 +486,15 @@ def _json_loader(filename):
long_flag="--alt_min",
help="Minimum random altitude",
type=float,
default=0.75
default=500
)
add_config(
parser,
load,
long_flag="--alt_max",
help="Maximum random altitude",
type=float,
default=2.5
default=1000
)
# Start to parse other attrs
config = parser.parse_args()
Expand Down
4 changes: 2 additions & 2 deletions pokemongo_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
class PokemonGoBot(Datastore):
@property
def position(self):
return self.api._position_lat, self.api._position_lng, 0
return self.api._position_lat, self.api._position_lng, self.api._position_alt

@position.setter
def position(self, position_tuple):
Expand Down Expand Up @@ -571,7 +571,7 @@ def update_web_location(self, cells=[], lat=None, lng=None, alt=None):
if lng is None:
lng = self.api._position_lng
if alt is None:
alt = 0
alt = self.api._position_alt

if cells == []:
location = self.position[0:2]
Expand Down