ROV Xbox controller

Hi

I had a wet test today. The vehicle moved as I expected apart from the left stick, if you move it left then the sub moves right and the when the stick is pushed right the sub moves left. I would like to reverse that but if I do that with the motors it could have effects of other axis movement.

Is there an easy way to reverse this with the Xbox controller please.

Is there any way to zero the depth at the surface please?

Typical UK, rubbish vis, and I had to stop as the tidal stream was picking up.

Thanks

Julian

Hi Julian,

This sounds like either incorrect joystick calibration or motor direction issues. Did you try the ROV in stabilize or depth hold mode at all? If the motors are reverse from how the ROV expects than stabilize mode will go crazy.

Please verify that the joystick calibration process was correct as well.

You can check the motors for proper directions at home by running them briefly and make sure the joysticks correspond to the right movements.

-Rusty

Hi Julian, there are a number of possibilities that could be causing the reversal issue.

1: The joystick calibration was reversed
2: The motors are plugged into the wrong outputs (see here)
3: The motor directions are configured incorrectly

Here’s how to test each, I would test in this order, too.

  1. In QGC, Open Widgets->Mavlink Inspector and expand the field that says RC_CHANNELS_RAW. When you move the strafe/lateral stick to the right, then the channel 7 value should INCREASE. If it doesn’t recalibrate the joystick and move the stick in the correct direction.

  2. Trace the wires to the motor output pin on the Pixhawk autopilot. They should be set up according to this diagram. An alternative approach is to operate in Manual mode, unplug all of the motors from the autopilot, then plug them in one by one, making sure that the correct motor spins as you plug it in to the outputs.

  3. Follow the directions here.

To zero depth, search for the BASE_RESET parameter and set it to ‘Reset’, then power-cycle the ROV. In the next QGC release, you will be able to click a button in the sensor calibration page to reset the depth.

I agree with Rusty, try running in Stabilize Mode and observe if all of the motors are operating correctly, that will narrow down 2 and 3 above.

Jacob and Rusty

Before submersion I tested the thrusters with a light piece of cord to see it flutter behind the thruster when the stick was pushed forward etc. I also carried out a joystick cal.

The water depth was about a meter so I did not get the opportunity to test any other mode apart from manual. Also the ROV was light so I need to add more weight than came with the kit.

I will do what you suggested and get back, thanks.

Regards

Julian

Hi Rusty, Jacob

I just checked, channel 7 value was decreasing. I have recalibrate the joystick and now when I move the stick to the right the channel 7 value increases.

Thanks

Julian

Great to hear, let us know if that fixes it in the water.

Julian,

Regarding weight, if you didn’t have enough I’m guessing you’re using a pretty small battery?

-Rusty

Rusty,

No it is the recommended battery from Hobby King. I attached the extra weight but still found I had to thrust down to stay under. Water temp today was 10.6 degrees C.

Regards

Julian

Julian,

Okay. We generally recommend being slight positively buoyant for a few reasons:

  • If something goes wrong, like the battery dies, you float up
  • The vertical thrusters will only have to push water upwards, so you don’t disturb sand on the bottom

How much weight did you have to add?

-Rusty

Rusty,

I added one more of your 200g weights. I still think the ROV is still too light. If I stop thrusting down it comes up fairly quickly?

Regards

Julian

Okay, how many are you using total?

Rusty

A total of seven weights.

Regards

Julian