Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
gm_kerbal_adaptor
Project
Project
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christopher Reis
gm_kerbal_adaptor
Commits
714d403e
Commit
714d403e
authored
Apr 29, 2017
by
Christopher Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated IP and Dictionary Location
parent
bde7bdde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
PublishThread.cpp
PublishThread.cpp
+7
-2
No files found.
PublishThread.cpp
View file @
714d403e
...
...
@@ -27,7 +27,7 @@ using json = nlohmann::json;
using
namespace
gmsec
::
api
;
json
dictionary
;
std
::
string
url
=
"http://192.168.
1.4
:8085/telemachus/datalink?"
;
std
::
string
url
=
"http://192.168.
0.58
:8085/telemachus/datalink?"
;
std
::
string
v_url
;
std
::
string
o_url
;
std
::
string
n_url
;
...
...
@@ -64,7 +64,8 @@ void CALL_TYPE PublishThread::run()
//o Delay to allow subscriber thread to set up
example
::
millisleep
(
100
);
std
::
ifstream
myfile
(
"/GMSEC_API/bin/dictionary_adaptor.json"
);
std
::
ifstream
myfile
(
"dictionary_adaptor.json"
);
std
::
cout
<<
"Lodaded dictionary"
<<
'\n'
;
std
::
string
str
((
std
::
istreambuf_iterator
<
char
>
(
myfile
)),
(
std
::
istreambuf_iterator
<
char
>
()));
dictionary
=
json
::
parse
(
str
);
for
(
size_t
i
=
0
;
i
<
dictionary
[
"subsystems"
].
size
();
i
++
)
{
...
...
@@ -242,6 +243,10 @@ void PublishThread::setup()
//o Connect to the GMSEC bus
connection
->
connect
();
// url = example::get(config, "KERBAL_URL", "http://192.168.1.4:8085");
// std::cout << "Listening to telemachus on " << url << '\n';
// url += "/telemachus/datalink?";
}
...
...
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