Hey, I just wanted help in getting IMU data from the pixhawk. I tried echoing the mavros/imu topic. There is nothing being posted there. I have the pixhawk connected with Pi2 and Pi2 connected to a surface computer. The pixhawk seems to be generating PWM.
Also how can I tune the PID. The mavros topic is saying that the pixhawk is unarmed and mavros is not connected. Pixhawk gets armed when I press start in the controller.
Can you show some output of what you are trying and seeing? What is the output of rostopic list? According to this, it looks like the data you are looking for is published under mavros/imu/data, not mavros/imu.
@charlie.brown There are many PIDs in the software. You can tune the PIDs by adjusting user-settable variables called parameters. The attitude rate control PID coefficients are in the ATC_ group of parameters, the attitude angle control PID coefficients are also in the ATC_ group, the z-axis depth hold parameters are in the POS_, VEL_ and ACCEL_ groups.