# ROV Xbox controller

**URL:** <https://discuss.bluerobotics.com/t/rov-xbox-controller/953>\
**Category:** Blue Robotics Software\
**Created:** [April 14, 2017, 2:19pm UTC](https://discuss.bluerobotics.com/t/rov-xbox-controller/953 "2017-04-14T14:19:48Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![julesh](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@julesh](https://discuss.bluerobotics.com/u/julesh)\
**Post date:** [April 14, 2017, 2:19pm UTC](https://discuss.bluerobotics.com/t/rov-xbox-controller/953/1 "2017-04-14T14:19:48Z")

</div>

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

 ![](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/2X/d/d0640d822921d2244bb15e7e7f0d09bcea812f14.jpeg)

---

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [April 14, 2017, 3:48pm UTC](https://discuss.bluerobotics.com/t/rov-xbox-controller/953/2 "2017-04-14T15:48:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jwalser](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/jwalser/32/2234_2.png) [@jwalser](https://discuss.bluerobotics.com/u/jwalser)\
**Post date:** [April 14, 2017, 3:51pm UTC](https://discuss.bluerobotics.com/t/rov-xbox-controller/953/3 "2017-04-14T15:51:47Z")

</div>

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](http://discuss.bluerobotics.com/t/problem-on-turning-function-depth-hold-mode-and-temp-sensor/560/6))  
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](http://ardusub.com/images/vectored-frame.png) 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](http://docs.bluerobotics.com/brov2/software-setup/#configure-motor-directions).

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.

---

<div class="post-metadata">

**Author:** ![jwalser](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/jwalser/32/2234_2.png) [@jwalser](https://discuss.bluerobotics.com/u/jwalser)\
**Post date:** [April 14, 2017, 3:53pm UTC](https://discuss.bluerobotics.com/t/rov-xbox-controller/953/4 "2017-04-14T15:53:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![julesh](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@julesh](https://discuss.bluerobotics.com/u/julesh)\
**Post date:** [April 14, 2017, 4:01pm UTC](https://discuss.bluerobotics.com/t/rov-xbox-controller/953/5 "2017-04-14T16:01:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![julesh](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@julesh](https://discuss.bluerobotics.com/u/julesh)\
**Post date:** [April 14, 2017, 5:23pm UTC](https://discuss.bluerobotics.com/t/rov-xbox-controller/953/6 "2017-04-14T17:23:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jwalser](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/jwalser/32/2234_2.png) [@jwalser](https://discuss.bluerobotics.com/u/jwalser)\
**Post date:** [April 14, 2017, 5:25pm UTC](https://discuss.bluerobotics.com/t/rov-xbox-controller/953/7 "2017-04-14T17:25:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [April 14, 2017, 11:22pm UTC](https://discuss.bluerobotics.com/t/rov-xbox-controller/953/8 "2017-04-14T23:22:47Z")

</div>

Julian,

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

-Rusty

---

<div class="post-metadata">

**Author:** ![julesh](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@julesh](https://discuss.bluerobotics.com/u/julesh)\
**Post date:** [April 14, 2017, 11:51pm UTC](https://discuss.bluerobotics.com/t/rov-xbox-controller/953/9 "2017-04-14T23:51:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [April 15, 2017, 12:17am UTC](https://discuss.bluerobotics.com/t/rov-xbox-controller/953/10 "2017-04-15T00:17:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![julesh](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@julesh](https://discuss.bluerobotics.com/u/julesh)\
**Post date:** [April 15, 2017, 12:36am UTC](https://discuss.bluerobotics.com/t/rov-xbox-controller/953/11 "2017-04-15T00:36:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [April 15, 2017, 4:22am UTC](https://discuss.bluerobotics.com/t/rov-xbox-controller/953/12 "2017-04-15T04:22:24Z")

</div>

Okay, how many are you using total?

---

<div class="post-metadata">

**Author:** ![julesh](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@julesh](https://discuss.bluerobotics.com/u/julesh)\
**Post date:** [April 15, 2017, 10:03am UTC](https://discuss.bluerobotics.com/t/rov-xbox-controller/953/13 "2017-04-15T10:03:04Z")

</div>

Rusty

A total of seven weights.

Regards

Julian
