Drone doesn't face ROI

Hello guys. I’m writing about probably common issue, but didn’t find a way to solve it. The thing is, I connected my storm32 gimbal, configured it, but in autonomous missions with ROI (or follow me mode etc…) my drone doesn’t face on ROI anymore. Gimbal does, it tries as hard as it can, but the angles are only -90+90, and it looks on my landing gear :frowning: My WP_Yaw_behavior is set to 2, but in 1 it still doesn’t work and as far as i know 0 will just freeze yaw in one position and that’s not what i’m talking about, option 3 doesn’t work too.

“” Points the nose of the vehicle and camera gimbal at the “region of interest”. In the example above the nose and camera would be pointed at the red marker.""
It is said in the ardupilot manual…

Same happens when using Circle mode, drone flies in a circle, gimbal tries to look at me, but drone still moves like a car on curve. Same with follow me, leash, look at me etc etc…
I’m using APM with 3.2.1 firmware with hakrc gimbal based on storm32
My gimbal settings are:
stabilize yaw checked
1000-2000, -90;90 (cannot excede those, becasue of gimbal possibilities), reversed

I have a PR that fixes that: https://github.com/ArduPilot/ardupilot/pull/5518

1 Like

seems like this is it, but I don’t really know how to change this code, can you send me some kind of instruction?

Just compile the latest master code from github, the PR has been merged into master already

Yea, emmm, i just see this latest master code goes for 3.6 version and I’m using old APM 2.x board, which, as far as I know, works only till 3.2.1 version. Does this 3.2.1 latest version includes code you sent me before?

No it does not. you should update your hardware.
There are many cheap options: http://ardupilot.org/copter/docs/common-autopilots.html