Open Cristian-wp opened 4 years ago
I don't really know what is the problem, but i do not like that diag:
key: "AHRS subsystem health"
value: "Fail"
Probably you should calibrate the sensors. Also please check that attitude indicator in QGC works.
I resolve it, I have not set the correct frame in QGC. Previously I had do some experiments with HITL and the UAV frame was not changed.
key: "AHRS subsystem health" value: "Fail"
Why you do not like that result? At the moment I have not armed the PX4 so I was thinking that was normal...There is a software/hardware problem?
I do not like that because AHRS is essential to be able to fly. You simply cannot stabilize your drone if you do not know reference orientation. If i remember correctly on PX4 that refers to EKF health, but i have not use it for a while.
Issue details
Hi, I am new to Mavros and ROS so please be patient :)
I am trying to read IMU linear acceleration data directly from a Pixhawk (connected via USB) with a C++ program without success. Initially I had try to send command using this example:
and in the terminal where I launch px4.launch I see the arming and offboard configuration without a problem.
So I move forward and using a publisher and a subscriber I have tried to read the IMU (without setting the arming and the offboard like previously), but the value printed are all 0.
I have tried to see the values with rostopic echo but I can not see anything, the same thing happen with all other topic that I try.
I have also try to run a node with:
and read the IMU with:
but I can not see anything even in this way.
I think there is a problem of communication between my program and the PX4, but I do not find any clue...
This is the publisher:
and this is the subscriber:
Someone can help me please? I Thanks in advance
MAVROS version and platform
Mavros: 1.1.0 ROS: Melodic Ubuntu: 18.04
Autopilot type and version
[ ] ArduPilot [ x ] PX4
Version: 1.9.2
Node logs
Diagnostics
Check ID