Skip to content

Commit 8e02ad1

Browse files
comm/manager/imc/SystemImcMsgCommInfo: Reintroduce setting position from VerticalProfile if USV.
1 parent b927f2d commit 8e02ad1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/java/pt/lsts/neptus/comm/manager/imc/SystemImcMsgCommInfo.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,10 @@ protected boolean processMsgLocally(MessageInfo info, IMCMessage msg) {
467467
loc.setLongitudeDegs(lonDeg);
468468

469469
// Commented out because it doesn't guarantee the time is correct if coming from sat comms
470-
//resSys.setLocation(loc, timeMillis);
470+
if (resSys.typeVehicle == VehicleType.VehicleTypeEnum.USV) {
471+
// Allow for USVs only
472+
resSys.setLocation(loc, timeMillis);
473+
}
471474
}
472475
catch (Exception e) {
473476
e.printStackTrace();

0 commit comments

Comments
 (0)