Skip to content

Commit

Permalink
DUNE/Control/PathController: Remove unnecessary try-catch block.
Browse files Browse the repository at this point in the history
BottomTracker does not throw as of 6ccc3f8.
  • Loading branch information
mcpca committed Aug 26, 2019
1 parent c41058c commit 8d12b1c
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/DUNE/Control/PathController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,25 +564,7 @@ namespace DUNE

if (isTrackingBottom())
{
try
{
m_btrack->onEstimatedState(es);
}
catch (std::runtime_error& e)
{
// If braking then stop braking
if (m_braking)
{
IMC::Brake brk;
brk.op = IMC::Brake::OP_STOP;
dispatch(brk);

m_braking = false;
}

signalError(e.what());
return;
}
m_btrack->onEstimatedState(es);
}

if (m_setup)
Expand Down

0 comments on commit 8d12b1c

Please sign in to comment.