I want to use external vision to localize my drone. My version is v1.4.1 and I use INAV&attitude_estimator_q. I have set ATT_W_EXT_HDG=0.97 and ATT_EXT_HDG_M = Vision as picture following. I also set parameters of Position Estimator INAV.
Now my position is accurate but the orientation of /mavros/local_position/pose is nothing about vision but all of NED.
This is my parameter of Attitude Q Estimator:
This is my parameter of INAV
This is my parameter of System
And following are my output:
This is my /mavros/vision_position/pose input, which is right. In euler form the quaternion is yaw=0, roll=0, pitch=0
This is my /mavros/local_position/pose output. As you can see the position is delightly the same with the input. But sadly the orientation is not. In euler form the quaternion is yaw=3.14(pi), roll=0, pitch=0, which follows the NED coordination.
Could someone please help me…
What is your vision coordinate? The mavros need ENU.
My vision coordination the start position of the drone and z points up. I just don’t want it to rely on NED and want it totally rely on vision.
Because now I’m not very understand the algorithm of the filter system and I feel my magnetic instrument have too much noise so firstly I want my drone to purely rely on SLAM output.
Did you analysis your log about the norm of Mag data?
You could use your vision coordinate but it should transfer into the ENU coordinate for MAVROS and MAVROS will transfer it to PX4 whose coordinate is NED.
I haven’t analyse the log
What I’m trying to do right now is transfer the coordinate. But is there any way that I can get rid of ENU coordinate and completely rely on vision coordinate?
I mean maybe change some source code?
Btw if my Mag have some problem do you know how can I fix it？
Without the original onboard magnetic sensor, the vehicle might be dangers when the vision-based yaw angle data is not stable enough. You could test whether your sensors are well calibrated, then add the vision sensor into the filter with proper fusion weights.
Thank you very much… Without you I really don’t know how can I get more information about PX4. I am now reconfiguring my drone and want to add the vision sensor into LPE algorithm. But I can’t configure level horizon sensor as I asked herehttp://discuss.px4.io/t/level-horizon-calibration-always-fail/2024