-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PX4 Cntrl changes #68
Comments
The VIO pose is computed relative to the world frame where the x-axis points to the forward direction when you start VINS. |
Can you point that part in the code, where is the quaternion conversion, I guess it is from NED to ENU , would be nice find it in the code if possible |
@bigsuperZZZX How can we solve this if i dont want to pass compass data and just want it to run over /mavros/imu/data_raw and what will be the issue. As drone is equipped with a single magnetometer housed inside the Pixhawk 4 mini. However, this magnetometer's reliability is compromised due to its proximity to numerous wires, making it susceptible to interference from current magnetic fields. The FCU orientation heavily relies on the data provided by both the inertial measurement unit (IMU) and the magnetometer. The indoor environment, often characterized by various electronic devices, introduces further challenges, potentially leading to magnetometer failure. Consequently, the FCU's orientation, particularly the estimation of yaw, may suffer from instability and fluctuation issues. As i am planning to use px4 ctrl and vio in high magnetic field so it will deflect magnetometer. What will be the possible solution. |
You can switch the state estimatior of PX4 from EKF to Q Estimator as this estimator can ignore the magnetometer readings. |
Thankyou @bigsuperZZZX for you reply. This means i can take flight without having compass but as we are subscribing mavros/imu/data which is fusion of magnetometer and imu how i an going to subscribe if i am going to turn it off and as you mentioned previously https://github.com/ZJU-FAST-Lab/Fast-Drone-250/blob/8ff64274b161bb829653faf5946656658e7e2c9f/src/realflight_modules/px4ctrl/src/controller.cpp#L51 this line use orientation of imu so isn’t its taking magnetometer orientation |
Magnetometer is not the necessarity for mavros/imu/data. |
Thankyou @bigsuperZZZX |
@EhrazImam I also encountered the same problem. After pixhawk 6c is configured as a complementary filter estimator, /mavros/imu/data cannot be obtained. How did you solve it? |
@bzw-uestc you need to let pixhawk 6c transmit the orientation mavlink message of the same frequency to the IMU message, then you can get /mavros/imu/data back. Complementary filter estimator is not the problem. |
@bigsuperZZZX As you can see over here ZJU-FAST-Lab/Fast-Drone-250#33 (comment)
I want to know if we are using VIO then why we need mavros/imu/data as far i know that mavros/imu/data gives us acc,gyro and orientation and where as /mavros/imu/data_raw we only get acc and gyro.
If you are flying over VIO, why do you need the magnetometer?
Thankyou
The text was updated successfully, but these errors were encountered: