Nortek Nucleus DVL and BlueROV2 - compasses calibration procedure

Hi,

We have BlueROV2 Heavy configuration with Nortek Nucleus 1000 DVL integrated. We have encountered some issues regarding the calibration of BlueROV2 compasses and the DVL compass.

We can do the DVL compass calibration pretty easily in the Nortek Nucleus app. Then we connect the DVL to ROV in BlueOS and start the ROV calibration.

In order to do the ROV compasses calibration, we need to enter the GNSS point that can be set only once per boot up (this sets GNSS point for the DVL). We enter it, do the ROV compasses calibration and see the ROV in the map in Cockpit, but this calibration requires the Autopilot reset afterwards. After the reset, we lose the ROV on the map in Cockpit and it never reappears. Then we have to do the complete reboot and we lose calibration that we just did.

We are wondering what is the correct order of steps here so we have both ROVs compasses and the DVL compass calibrated and the ROV visible in the Cockpit map?

BlueOS version: 1.4.7

Cockpit version: 1.18.4 during tests (now updated to 1.19)

Firmware version: 4.7.1 during tests (now updated to 4.7.2)

Thank you in advance for any advices!

Hi @gusnobima -
I’m a bit confused by rebooting the vehicle apparently causing the loss of your BlueOS compass calibration. This should not happen! IMU calibration parameters persist between reboots - what makes you think a reboot is causing a loss of calibration?
The ROV compass calibration requests a geo-ip or local coordinate to properly determine the magnetic declination based on your location - this location does not need to be exact, and is used by the autopilot only until another origin is set (I believe?)

In general, you should be able to calibrate the vehicle, calibrate your Nortek DVL, and then use the Nortek Nucleus BlueOS extension to set the system position, at which point it shows up on the map in Cockpit. I’d wager that some aspect of the Nortek BlueOS extension needs an update, as the way the autopilot handles its origin location has changed in recent updates!

Hi @tony-white , thank you for your fast response.

I might be wrong, but we have noticed that the ROV compasses do not retain the same orientation after the reboot. We will do some more tests to be sure of it.

The main issue is the geo-ip local coordinate that the ROV compass calibration requests. It automatically sets the GNSS origin in the Nucleus Extension as well, which can only be set once per reboot. The ROV is then visible in the map in Cockpit. Then the autopilot reboot is requested and the ROV disappears from the map. The only way to be able to get it back is to do a complete reboot and set the GNSS origin again. We tried this multiple times and it always disappears. The automatic setting of the GNSS point is what gives us trouble.

So, if the ROVs calibration remains intact after the reboot, the only solution for us is to calibrate ROVs compass, do a complete reboot right after, calibrate DVL after the reboot, and then set the GNSS point in Nucleus Extension.

It is pretty inconvenient thing to do in the field, but at least is some kind of solution.

Hi @gusnobima -
That is definitely inconvenient! I would recommend reaching out to Nortek, to see if they can update their extension to be able to send the appropriate message to the autopilot to set the global origin, at any time desired by the user. This link shows how that is accomplished with the WaterLinked DVL extension…
Support in Cockpit to be able to right-click the map and set the origin location is also in the works!

Hi @tony-white,

It would be great to have the same option in Nortek Extension as well! We will definitely communicate it with them. And great for the new Cockpit options developments!

On the DVL topic - we have been having some issues with ROV drifting far form the desired path when performing missions, even after multiple calibrations. We are wondering what else can be done to help this? We have entered the standard parameters recommended in the Nucleus Integration with BlueROV2 guide. We have tried to exclude the ROV compasses by setting EK3_SRC1_YAW to External Nav and EK3_SRC2_YAW to None, since we were not sure if ArduPilot is doing some kind of weighted values between the two or not and to only have input from the DVL, but this did not seem to help much with the drift.

Also, in Cockpit we sometimes get the ROV stuck in one location in the map (lon,lat not changing, speed and heading do), while the ROV is moving in reality and in Nortek Extension. It seems to be some kind of issue with the DVL sending the data to ROV?

Furthermore, ROV is very slow during missions, approximately three times slower than what we set in the Mission plan. If we set it to go from point A to B with the speed of 1m/s, it will move with approximately 0.2m/s. We cannot figure out why. We usually start the mission from POSHOLD mode and then it changes to AUTO as soon as we click the play button for the mission. Could this create the speed issue?

I know this is quite a few questions, but we are a bit short on time now and trying to solve these issues for several months now!

Thanks in advance for any advice you have!

Hi @gusnobima -
It can be difficult to seperate performance of the DVL from that of the autopilot. In general, a DVL alone is not typically sufficient for a long “mowing the lawn” style transect survey. This is because the velocity estimates have error, which accumulates over time, resulting in large offsets between where the vehicle thinks it is, and where it actually is! The only way to correct this that I’m aware of is to provide another correction source, with an absolute estimation of position.
You could do this with a GPS mounted to the ROV, but it would only update your true position when the vehicle is at the surface. Alternatively, Cerulean Sonar makes the Omnitrack, and WaterLinked the UGPS, both are good options for providing 1Hz position estimates to be used in conjunction with a DVL.
Blue Robotics has never tested any DVL hardware from Nortek, so it is difficult to support folks doing so! EDIT: the initial DVL development was actually accomplished with a Nortek device - but that was over 6 years ago, and ArduSub has come a long way since then… I still think this is a Nortek extension issue!
If the ROV position does not move on the map, then the autopilot is not receiving data from the DVL. This can happen if the DVL loses tracking (bubbles, or too close to the bottom?)

The slow speed is an interesting - are you able to share a .BIN log from a mission where this behavior was observed? When in stabilize or depth hold mode does the vehicle navigate at speed normally? I’ve found that 1 m/s is a bit too aggressive, as the ROV can only reach that with limited tether drag and after significant time accelerating. I think others have used 0.5 to 0.6 m/s as a survey speed in auto mode? What mode you’re in before going to AUTO should have no impact…

Hi @tony-white ,

We understand that the DVL is not sufficient for long surveys, but we are doing very short missions (no more than 1.5min ) on quite short distances (around 20x20m max survey area, usually less), and we still have the drift issues. We do not require perfect alignment with the mission, but it would be great if we can get it within 2m. Also, this Nortek DVL has INS included, which is why we expected much betetr behaviour.

We will try to get Nortek helping with this, but we are not sure that the extension can be fixed in the next 2 months?

Yes, I attached two .BIN log files from the test where we performed missions where we had the drift and the low speed issue. After we have issues with the speed and change the mode to MANUAL, sometimes it takes some time to get back the normal responsiveness of the vehicle as well. We do not use stabilize or depth hold mode much, but it is worth trying. Lowering the survey speed is good advice. We will do some testing soon and try out a couple of things you mentioned!

I had to zip the files since they are too big to send together.

BIN_files.zip (16.8 MB)

Thanks for the support! We really appreciate it.

Hi @gusnobima -
Ok, with some AI assistance I found some interesting things!

  1. You should definitely update to ArduSub 4.7.2 - it includes a bug fix that was really hurting the performance of external sensors that talk UDP! (like your DVL)
  2. The gamepad is disconnecting or going to sleep, the Cockpit tab or window losing focus, or USB power saving - this is causing a failsafe disarm, which may explain the slow response after Auto mode. The logs don’t show manual after auto, only poshold? Are you using Cockpit lite (in the browser) or the standalone version? Three times, the vehicle disarmed mid-dive with “Lost manual control” (FS_PILOT_INPUT=2, a 3-second timeout)
  3. One mission failed outright. The second mission’s waypoints were at 0 m, which ArduSub rejects (“Alt above home must be negative” ×4), so that AUTO run never moved.
  4. 3 m/s is unrealistic. The DO_CHANGE_SPEED command is far above what a BlueROV2 can reach.
  5. DVL data bug (likely the Nortek extension, and relevant to their drift)
  • What happens: when the DVL loses bottom lock, the extension still sends velocity, with every axis set to −32.768 m/s and confidence 0. That’s 36 samples in log 5 and 449 in log 6 (8%), 10 of them during AUTO.
  • Why it gets through: VISO_QUAL_MIN = 0 lets these samples reach the EKF. The EKF’s checks may reject many of them, but they shouldn’t arrive at all.
  • Gaps in the data: there are long stretches with no DVL samples, the longest about 480 s. That would explain the Cockpit map position freezing.

So some things to try:

  1. Set VISO_QUAL_MIN to 1 or higher, so zero-confidence samples aren’t used. I’m fairly but not fully sure this check also applies to the DVL’s message type, so it’s worth confirming the bad samples disappear. Report the −32.768 problem to Nortek?
  2. Run missions at least 1–2 m deep, and make sure no waypoint is at 0 m.
  3. Drop the 3 m/s speed change and use WP_SPD 0.5.
  4. Set WP_RADIUS_M to 0.5–1.

Hi,

Regarding the implementation of the Nortek extension. Currently, the limitation of setting the GNSS origin once was due to ArduSub only accepting setting this value once, not due to a limitation in the Nucleus. The Nucleus supports setting a GNSS reference multiple times.

If this limitation is indeed fixed in ArduSub, then the extension can be changed to allow multiple updates of GNSS position.

Regarding the drift issues. For velocity data which is sent the ArduSub with a confidence of 0, the intention behind this is to provide velocity data, while at the same tell the EKF that we have 0 trust in the provided values. One would think that the EKF should handle this by either rejecting the data, or fuse it with a extremely low confidence, but maybe it is naive to think so.

The main reason for still sending the velocity data despite the low confidence is that ArduSub require this data stream to be present in order to use the position hold controller. I think that if the velocity data stopped streaming when the confidence was 0, that the ROV would change from position hold control to manual control, which is also not desirable. I’m not 100% sure it will actually change the controller mode in this case, but I do know it will not allow you to set the position hold controller without the velocity data.

ArduPilot’s EKF only accepts a single GNSS origin so that all local position data within a boot cycle is consistently referenced. That said, it is possible to update/correct the current position estimate via the MAV_CMD_EXTERNAL_POSITION_ESTIMATE message (after the origin has been set initially).

Assuming you’re sending updates in as VISION_POSITION_DELTA messages, what seems to be the relevant code apparently treats 0% quality (described in the MAVLink spec as “normalised confidence”) as ArduPilot’s EK3_VIS_VERR_MAX parameter value (i.e. your “fuse with low confidence” option). For the data to be completely rejected/ignored you would need to send a NaN value instead.

I don’t see any mode-change code in the pos-hold behaviour definition - in the absence of a valid position estimate it seems to just fall back to commanding no horizontal thrust (unless the pilot specifies some), which is basically just depth hold. As I understand it the position stops being considered valid once the EKF variance gets too high.

Indeed - the autopilot rejects attempts to enter modes that require a position estimate when that estimate doesn’t exist / is determined to be invalid. That at least makes sense to me, since otherwise it would be engaging a mode that promises behaviour it knows it cannot achieve.

That said, I believe it should be possible to engage if there’s some other source of position data (e.g. a GPS at the surface).

Hi all,

thank you for extensive explanations and suggestions. We had an unfortunate leakage in the electronics enclosure that we are currently taking care of and will be back doing more tests shortly.

One thing that seems to be fixed with new ArduSub 4.7.2 version is the ROV disappearing in Cockpit after the compass calibration/autopilot reboot. It made us very pleased to see this yesterday!