Skip to content

Commit

Permalink
Small fixes for altitude (#4265)
Browse files Browse the repository at this point in the history
* Small fix for alt

* Changed default alt values (to meters)

* Changed default alt values (to meters)

* Changed default alt values (to meters)

* Changed default alt values (to meters)

* Changed default alt values (to meters)

* Changed default alt values (to meters)

* Changed default alt values (to meters)

* Small change
  • Loading branch information
mjmadsen authored and solderzzc committed Aug 19, 2016
1 parent ca92336 commit b9abdf3
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
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 @@ -497,15 +497,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

0 comments on commit b9abdf3

Please sign in to comment.