Skip to content

Commit

Permalink
change fov to horizontal_fov
Browse files Browse the repository at this point in the history
  • Loading branch information
AzulRadio committed May 17, 2022
1 parent 4a50aa6 commit 7862059
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/plugins/minimal_scene/MinimalScene.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ void MinimalScene::LoadConfig(const tinyxml2::XMLElement *_pluginElem)
ignwarn << "Child elements of <sky> are not supported yet" << std::endl;
}

elem = _pluginElem->FirstChildElement("fov");
elem = _pluginElem->FirstChildElement("horizontal_fov");
if (nullptr != elem && nullptr != elem->GetText())
{
double fovDeg;
Expand All @@ -1133,8 +1133,8 @@ void MinimalScene::LoadConfig(const tinyxml2::XMLElement *_pluginElem)
fovStr >> fovDeg;
if (fovStr.fail())
{
ignerr << "Unable to set <fov> to '" << fovStr.str()
<< "' using default fov 90" << std::endl;
ignerr << "Unable to set <horizontal_fov> to '" << fovStr.str()
<< "' using default horizontal field of view" << std::endl;
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion test/integration/minimal_scene.cc
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ TEST(MinimalSceneTest, IGN_UTILS_TEST_ENABLED_ONLY_ON_LINUX(Config))
" <near>0.1</near>"
" <far>5000</far>"
"</camera_clip>"
"<fov>60</fov>"
"<horizontal_fov>60</horizontal_fov>"
"</plugin>";

tinyxml2::XMLDocument pluginDoc;
Expand Down

0 comments on commit 7862059

Please sign in to comment.