Skip to content

Commit

Permalink
Sensors/NortekDVL: distance readings are not useful in water track data.
Browse files Browse the repository at this point in the history
  • Loading branch information
josebraga committed Jul 13, 2016
1 parent 4e4c6ed commit 736973e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Sensors/NortekDVL/Parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ namespace Sensors
return false;

interpret();
m_type = RT_NONE;
return true;
}

Expand Down Expand Up @@ -340,6 +341,10 @@ namespace Sensors
void
processDistance(void)
{
// Water track data seems to carry no valid distance measurements.
if (m_type != RT_BT)
return;

for (unsigned i = 0; i < c_beam_count; i++)
{
float altitude;
Expand Down

0 comments on commit 736973e

Please sign in to comment.