Skip to content

Commit

Permalink
DUNE/Control/PathController: Fix for Z_Units = None.
Browse files Browse the repository at this point in the history
  • Loading branch information
luis109 committed Aug 19, 2024
1 parent 86bca14 commit a2d7190
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DUNE/Control/PathController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,8 @@ namespace DUNE
return m_estate.alt;
else if (unit == IMC::Z_DEPTH)
return m_estate.depth;
else if (unit == IMC::Z_NONE)
return m_estate.z;

throw std::runtime_error(DTR("Invalid Z unit"));
return 0;
Expand Down

0 comments on commit a2d7190

Please sign in to comment.