We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04e91e8 commit 9815917Copy full SHA for 9815917
src/java/pt/lsts/neptus/console/plugins/planning/PlanExecutionPreview.java
@@ -387,7 +387,7 @@ public synchronized void consume(StateReport msg) {
387
EstimatedState current = sim.getState().toEstimatedState();
388
current.setLat(Math.toRadians(msg.getLatitude()));
389
current.setLon(Math.toRadians(msg.getLongitude()));
390
- current.setDepth(msg.getDepth()/10.0);
+ current.setDepth(msg.getDepth() == 0xFFFF ? -1 : msg.getDepth()/10.0);
391
double ellapsedTime = Math.abs(System.currentTimeMillis()/1000.0 - msg.getStime()) * 3;
392
sim.setPositionEstimation(current, ellapsedTime);
393
}
0 commit comments