Tilt servos for roll and pitch control

Hi,

I am working on a project of a hexacopter configuration with the 2 lateral motors being tilted in pitch (same servo for both motors) and roll (different servos for each one). The following picture I think could help to understand the configuration.

This tube that supports motors 3 and 6 rotates for pitch control (-30 to 30º) and the motors 3 and 6 rotates outwards (0 to 30º) to push the drone to the right and left, respectively.

This configuration is required by the concept of operation of this UAV.

Trying to configure the pixhawk I have, I found that tilt is only for pitch, yaw or both, it don’t allow me to configure a tilt servo to control the roll. Is that right or I’m missing something? If anyone could help me with this tilt roll configuration.

yes, it is only possible to control pitch and yaw with tilt. If you want to control roll also, you have to modify the code.

Do you have any clue of where I have to do it? Which file or directory I should code this?

As already exists this functions for pitch and yaw, I think I can learn how to do it faster studying this features codes. Can you help me with this information?

Hey Marcelo, did you ever figure it out?

I never figured out how to edit the code. My solution was to set up a second flight mode on the RC, with the servos passing through the Pixhawk without interference. It worked in some tests without taking off, but I still don’t know if it will work when flying. My drone crashed shortly after takeoff on the first flight, but without using this tilt mode. There was a problem with incorrect PID tuning in normal mode, with the Pixhawk in position flight mode.

I tried another solution using this repository, but I couldn’t get it to work properly:
Tilting multicopters feature by salvamarce · Pull Request #21476 · PX4/PX4-Autopilot (github.com)

Hey Marcelo I was able to change the code to actually affect yaw and roll for my application if you’re still interested

Definitely I am. Did you test it in flight?

Yeah I did not too long ago. Needs some tuning but not bad. There’s a thread on discord if you look for bicopter.