Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
2015-16
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Daniel Fonseca Yarochewsky
2015-16
Merge requests
!39
Updated stitching code with some comments
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Updated stitching code with some comments
ah46657:gui
into
gui
Overview
0
Commits
2
Pipelines
0
Changes
5
Merged
Daniel Fonseca Yarochewsky
requested to merge
ah46657:gui
into
gui
9 years ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
Created by: ah46657
👍
0
👎
0
Merge request reports
Viewing commit
ec8f52f1
Prev
Next
Show latest version
1 file
+
3
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ec8f52f1
added some comments and updated the stitching code
· ec8f52f1
Austin Hsu
authored
9 years ago
baseStationCode/Static Map API/createCachedImage.py
+
3
−
4
Options
@@ -79,12 +79,11 @@ scale = ceil(max(info.current_w, info.current_h) / 640)
print
scale
# print "horizontal = %s, vertical = %s" % (info.current_w, info.current_h)
# can use this the corners with varying sizes to find lat and long for
# various pixel coordinates -> use those coords to query another segment of the map
# from the API.
cornersB
=
findCorners
(
40
,
-
80
,
15
,
1280
,
1280
)
screen
=
whiteScreen
();
# longitude = cornersB['W'] + (cornersB['E'] - cornersB['W']) * 5.0 / 4.0
# longitude = cornersB['W'] + 1600 * (cornersB['E'] - cornersB['W']) / 1280
# latitude = cornersB['N'] + (cornersB['N'] - cornersB['S']) / 4.0
# latitude = cornersB['N'] + 320 * (cornersB['N'] - cornersB['S']) / 1280
bleh
=
findCorners
(
40
,
-
80
,
15
,
1920
,
640
)
longitude
=
bleh
[
'
E
'
]
latitude
=
bleh
[
'
N
'
]
Loading