Commit 232b8a7a authored by Christoph Haag's avatar Christoph Haag
Browse files

d/ns: Fix informational message about example configs

v1 and v2 example configs are now in an exampleconfigs subdir.
parent be3c7dc4
...@@ -379,11 +379,8 @@ ns_config_load(struct ns_hmd *ns) ...@@ -379,11 +379,8 @@ ns_config_load(struct ns_hmd *ns)
// that value seems to unexpectedly // that value seems to unexpectedly
// change during init process. // change during init process.
NS_INFO(ns, NS_INFO(ns,
"Just so you know, you can add tunable FoV " "Just so you know, you can add tunable FoV parameters to your v2 json file. There are "
"parameters to your v2 json file. There's an " "examples in src/xrt/drivers/north_star/exampleconfigs.\n");
"example in "
"src/xrt/drivers/north_star/"
"v2_example_config.json.\n");
said_first_thing = true; said_first_thing = true;
ns->eye_configs_v2[0].fov.angle_left = -0.8; ns->eye_configs_v2[0].fov.angle_left = -0.8;
ns->eye_configs_v2[0].fov.angle_right = 0.8; ns->eye_configs_v2[0].fov.angle_right = 0.8;
...@@ -426,20 +423,14 @@ ns_config_load(struct ns_hmd *ns) ...@@ -426,20 +423,14 @@ ns_config_load(struct ns_hmd *ns)
if (offset == NULL) { if (offset == NULL) {
if (said_first_thing) { if (said_first_thing) {
NS_INFO(ns, NS_INFO(ns,
"Also, you should put an offset parameter " "Also, you should put an offset parameter into the json file to transform your "
"into the json file to transform your head " "head pose from the realsense to your nose bridge. There are some examples in "
"pose from the realsense to your nose " "src/xrt/drivers/north_star/exampleconfigs/");
"bridge. There are some examples in "
"src/xrt/drivers/north_star/"
"example_configs/ .\n");
} else { } else {
NS_INFO(ns, NS_INFO(ns,
"You should put an offset parameter into " "You should put an offset parameter into the json file to transform your head "
"the json file to transform your head pose " "pose from the realsense to your nose bridge. There are some examples in "
"from the realsense to your nose bridge. " "src/xrt/drivers/north_star/exampleconfigs/.");
"There are some examples in "
"src/xrt/drivers/north_star/"
"example_configs/ .\n");
} }
} else { } else {
struct cJSON *translation_meters = struct cJSON *translation_meters =
...@@ -477,8 +468,7 @@ ns_config_load(struct ns_hmd *ns) ...@@ -477,8 +468,7 @@ ns_config_load(struct ns_hmd *ns)
} else { } else {
NS_ERROR(ns, NS_ERROR(ns,
"Bad config file. There are examples of v1 and v2 files in " "Bad config file. There are examples of v1 and v2 files in "
"src/xrt/drivers/north_star - if those don't work, " "src/xrt/drivers/north_star/exampleconfigs - if those don't work, something's really wrong.");
"something's really wrong.");
} }
cJSON_Delete(config_json); cJSON_Delete(config_json);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment