Hello everyone!
I’m currently working on a dual-motor tailsitter UAV with two fixed motors and two elevons. I’ve successfully built the model and tested it in QHOVER and QSTABILIZE modes, and so far it’s performing reasonably well. However, I’m facing an issue when trying to fly it indoors using Vicon motion capture data.
The problem is that the flight controller doesn’t seem to process the Vicon data correctly.
When I compare the Vicon position data to what’s displayed in Mission Planner (Setup >> Advanced >> Mavlink Inspector >> vision_position_estimate), the positions appear accurate—but with axis mismatches:
X_vicon → Y_FC
Z_vicon → -Z_FC
This is shown in the following figure:
Additionally, when I run the command:
“ros2 topic echo /mavros/local_position/pose”
nothing is being published, which indicates a disconnect in the Vicon → MAVROS → FC data flow.
For testing, I created a script that successfully arms the tailsitter, performs takeoff, and lands (with no propellers attached for safety). The commands are being sent and acknowledged correctly.
However, once I attach the propellers, the tailsitter does not fly vertically to the commanded altitude. Instead, it exhibits unstable behavior, climbing much higher than the target altitude of 1 meter. I also tested with a target of -1 meter, but the issue persisted and it seems the vehicle wants to pitch not even for take off higher than the required altitude.
From what I understand, the flight controller is receiving the Vicon data (since it appears correctly in the Mavlink Inspector, despite the axis shifts), but it might not be interpreting or using it properly for navigation and altitude control.
For reference, I have:
Q_GUID_MODE = 1 enabled for autonomous command execution.
GPS_TYPE = 0 to disable GPS (indoor environment).
All necessary parameters for both the tailsitter configuration and Vicon integration have been set correctly, as shown in the image below:
Has anyone experienced similar issues or successfully flown a tailsitter indoors using Vicon? I’d really appreciate any insights or suggestions!
Thank you in advance—and big thanks to everyone working on the development of these type of UAV systems!