# Stonefish with Ardusub - Pitch not accurate - STABILIZE & ALT\_HOLD not working

**URL:** <https://discuss.bluerobotics.com/t/stonefish-with-ardusub-pitch-not-accurate-stabilize-alt-hold-not-working/22457>\
**Category:** Blue Robotics Software\
**Tags:** ardusub, sitl\
**Created:** [February 12, 2026, 6:23pm UTC](https://discuss.bluerobotics.com/t/stonefish-with-ardusub-pitch-not-accurate-stabilize-alt-hold-not-working/22457 "2026-02-12T18:23:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidnoronha1](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@davidnoronha1](https://discuss.bluerobotics.com/u/davidnoronha1)\
**Post date:** [February 12, 2026, 6:23pm UTC](https://discuss.bluerobotics.com/t/stonefish-with-ardusub-pitch-not-accurate-stabilize-alt-hold-not-working/22457/1 "2026-02-12T18:23:28Z")

</div>

Basically, the AUV works fine (ish) in MANUAL mode, there’s some thruster flipping and its not as responsive as we expected but ArduSub seems to always end up with an incorrect value of pitch / roll that causes the STABLIZE mode to just rotate the bot contiuously

It seems to be stable for a little bit initially but then will just start flipping around continuously - it seems to behave slightly differently on different people’s machines also but this same pattern persists

Essentially:  
it is supposed to stably maintain pitch and roll on a neutral position but it ramps up and goes out of control

 ![image](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/3X/4/6/463acd780bd42e097ce40355d26e611e2ef50378.jpeg)

The bot seems to think its upside down, We’ve tried a few things like setting various rotations of flight computer in ardusub, setting pitch to 0 from the SITL bridge script and a few other things but it seems to always return to this

Demonstration video:

[WhatsApp Video 2026-02-12 at 8.46.23 PM.mp4](https://vitacin-my.sharepoint.com/:v:/g/personal/david_john2023_vitstudent_ac_in/IQCukuNGw2AvSaNmt6xUDX0QAZyV0JmJYpYUnJr8FwWV0s8?nav=eyJyZWZlcnJhbEluZm8iOnsicmVmZXJyYWxBcHAiOiJPbmVEcml2ZUZvckJ1c2luZXNzIiwicmVmZXJyYWxBcHBQbGF0Zm9ybSI6IldlYiIsInJlZmVycmFsTW9kZSI6InZpZXciLCJyZWZlcnJhbFZpZXciOiJNeUZpbGVzTGlua0NvcHkifX0&e=aF5IFW)

Repository has our stonefish simulator, the interconnect script and the ardusub SITL dockerfile & docker-compose - Ive written a few setup instructions in the wiki:

> **[GitHub - Dreadnought-Robotics/mira\_sim](https://github.com/Dreadnought-Robotics/mira_sim)**
>
> Contribute to Dreadnought-Robotics/mira\_sim development by creating an account on GitHub.

The nishaanth\_version branch has some various tweaks we tried to fix it but that didn’t fully resolve it but seemed to help but we aren’t sure exactly what it was

Ive tried finding any solutions but while it seems to be a recurring issue with SITL - I havent seen anything that resolved the issue
