HKUST-Aerial-Robotics / OmniNxt

[IROS'24 Oral] A Fully Open-source and Compact Aerial Robot with Omnidirectional Visual Perception
https://hkust-aerial-robotics.github.io/OmniNxt/
GNU General Public License v3.0
258 stars 15 forks source link

IMU Frequency Issue #10

Open bhaskar-glitch opened 1 month ago

bhaskar-glitch commented 1 month ago

I am using Nxt FC v2 with Jetson Nano, and I am experiencing an issue where mavros/imu/data_raw is publishing at 250+ Hz, but mavros/imu/data is only coming in at 20 Hz. I have followed all the steps provided in the documentation but cannot resolve this discrepancy. How can I increase the frequency of /mavros/imu/data

Luxru commented 1 month ago

recompile your px4 firmware with this setup: https://github.com/ZJU-FAST-Lab/Fast-Drone-250/issues/83

himani-glitch commented 4 weeks ago

recompile your px4 firmware with this setup: ZJU-FAST-Lab/Fast-Drone-250#83

I tried the same, i tried making changes in mavlink_main.cpp file to 200.0f, but it dosent work. The mavros/imu/data is still 20hz, although the mavros/imu/data_raw is 250+ hz.

Can you please share your complied px4 firmware, also which you are using. the official one or this one https://github.com/Peize-Liu/PX4-Autopilot/tree/5ba2e91ff227fe4da0133371e88dc81b038bb81e

Luxru commented 4 weeks ago

Did you change the rate of ATTITUDE_QUATERNION to 200Hz? I’m using https://github.com/PX4/PX4-Autopilot/tree/v1.14.3

7db5143ece146a4540aca1236161203d

bhaskar-glitch commented 4 weeks ago

Yes

Did you change the rate of ATTITUDE_QUATERNION to 200Hz? I’m using https://github.com/PX4/PX4-Autopilot/tree/v1.14.3

7db5143ece146a4540aca1236161203d

Yes i changed the ATTITUDE_QUATERNION TO 200hz in manvlink_main.cpp file. Is that only file in which i should make changes? We are using v1.14.0

bhaskar-glitch commented 4 weeks ago

Yes

Did you change the rate of ATTITUDE_QUATERNION to 200Hz? I’m using https://github.com/PX4/PX4-Autopilot/tree/v1.14.3 7db5143ece146a4540aca1236161203d

Yes i changed the ATTITUDE_QUATERNION TO 200hz in manvlink_main.cpp file. Is that only file in which i should make changes? We are using v1.14.0

I tried the same with v1.14.3, its not working, still the hz is slow