BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
eb37cdd5
Commit
eb37cdd5
authored
Apr 05, 2019
by
Zahid Chowdhury
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hard-coded geo-fencing for Vancouver SunRun - TODO - fix with values from dhub
parent
bc24282d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
location.c
apps/locationService/components/location.c
+8
-0
No files found.
apps/locationService/components/location.c
View file @
eb37cdd5
...
@@ -222,6 +222,14 @@ static void LocationResultHandler(
...
@@ -222,6 +222,14 @@ static void LocationResultHandler(
LE_INFO
(
LE_INFO
(
"Received result notification of type success response, but couldn't fetch the result
\n
"
);
"Received result notification of type success response, but couldn't fetch the result
\n
"
);
}
}
// Add hard-coded geo-fencing for Vancouver SunRun - TODO - fix with values from dhub
else
if
(
scan
.
lat
<
49
.
0
f
||
scan
.
lat
>=
50
.
0
f
||
scan
.
lon
>
-
122
.
0
f
||
scan
.
lon
<=
-
124
.
0
f
)
{
UseGpsScan
();
}
else
else
{
{
LE_INFO
(
"Location: latitude=%f, longitude=%f, accuracy=%f meters
\n
"
,
LE_INFO
(
"Location: latitude=%f, longitude=%f, accuracy=%f meters
\n
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment