# ROV Special Mode

**URL:** <https://discuss.bluerobotics.com/t/rov-special-mode/12355>\
**Category:** ArduSub\
**Created:** [June 17, 2022, 1:02pm UTC](https://discuss.bluerobotics.com/t/rov-special-mode/12355 "2022-06-17T13:02:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cebraildgr\_00](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@cebraildgr\_00](https://discuss.bluerobotics.com/u/cebraildgr_00)\
**Post date:** [June 17, 2022, 1:02pm UTC](https://discuss.bluerobotics.com/t/rov-special-mode/12355/1 "2022-06-17T13:02:00Z")

</div>

We want the rov standing straight in standard conditions to be inclined at an angle of 20 degrees, looking up from the front. Can you suggest which resources should I review for this?

 ![ROV](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/2X/6/6a66045c061890afc89ed23ba092fedf22fe6878.png)  
HM5maVy.png)

---

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [June 17, 2022, 6:04pm UTC](https://discuss.bluerobotics.com/t/rov-special-mode/12355/2 "2022-06-17T18:04:36Z")

</div>

Hi @cebraildgr_00, welcome to the forum 🙂

Assuming you have an ROV with pitch control, ArduSub’s depth hold and stabilize [flight modes](https://www.ardusub.com/reference/ardusub/features-while-in-operation.html#flight-mode) can be used to maintain a commanded pitch angle.

If you’re controlling your vehicle with a joystick then you’ll need to

1. arm vehicle
2. set desired flight mode
3. use the [roll-pitch-toggle](https://www.ardusub.com/reference/ardusub/joystick-setup-page.html#general) joystick button functionality (to switch to roll/pitch control)
4. use the joystick to [set the desired pitch angle](https://www.ardusub.com/reference/ardusub/features-while-in-operation.html?q=#pitchroll-control)
5. use the roll-pitch-toggle again (to return to normal forward/lateral control)
6. control as normal

If you’re doing programmatic control then you’ll need to

1. arm the vehicle
2. set desired flight mode
3. [set attitude target](https://www.ardusub.com/developers/pymavlink.html#set-target-depthattitude)
4. control other motion components as normal

---

<div class="post-metadata">

**Author:** ![ugurdemirezen](https://avatars.discourse-cdn.com/v4/letter/u/9de053/32.png) [@ugurdemirezen](https://discuss.bluerobotics.com/u/ugurdemirezen)\
**Post date:** [June 20, 2022, 7:32am UTC](https://discuss.bluerobotics.com/t/rov-special-mode/12355/3 "2022-06-20T07:32:07Z")

</div>

Hi Eliot,

Should we change that line?

```auto
roll_angle = pitch_angle = 0

```

Imagine that we change it to 20 and it works. How can we make it 0 while we are using ROV?

Thanks

---

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [June 22, 2022, 9:42pm UTC](https://discuss.bluerobotics.com/t/rov-special-mode/12355/4 "2022-06-22T21:42:10Z")

</div>

You can change the roll and pitch angle targets if you want to, but they will only work if you’re in a flight mode that includes a control system and using a vehicle that supports them. They are both zero by default, unless explicitly changed by the operator (using a command, or using the joystick while roll-pitch mode is toggled on).

---

<div class="post-metadata">

**Author:** ![ugurdemirezen](https://avatars.discourse-cdn.com/v4/letter/u/9de053/32.png) [@ugurdemirezen](https://discuss.bluerobotics.com/u/ugurdemirezen)\
**Post date:** [June 23, 2022, 3:10pm UTC](https://discuss.bluerobotics.com/t/rov-special-mode/12355/5 "2022-06-23T15:10:49Z")

</div>

Is there any special version of Ardusub for that code? I tried with 3.5.4 but it did not work at all.

And I had to add an udpout to mavproxy for the connection.

should I change the version of ardusub?

---

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [June 25, 2022, 6:18am UTC](https://discuss.bluerobotics.com/t/rov-special-mode/12355/6 "2022-06-25T06:18:05Z")

</div>

> [@ugurdemirezen](#):
>
> Is there any special version of Ardusub for that code?

I’m not certain - I’d recommend starting from the latest stable version (4.1.0).
