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 SITL/mavros error "unexpected command 176" using setpoint_* topics #512
Comments
Command 176 - MAV_CMD_DO_SET_MODE not a problem. PX4 resend Seems bug somewhere in mavlink module of firmware. Check SET_ATTITUDE_TARGET handler. Also ask at PX4 forums for support. |
@vooon I'm trying to use gazebo + offboard mode as well. I'm able to connect, and I publish to mavros/setpoint_attitude/attitude topic successfully, but the copter keeps on arming/disarming itself for some reason. It never takes off. Just sits on the ground. Sometimes I get this warning: CMD: Unexpected command 176, result 0. Sometimes I get this warning: CMD: Unexpected command 400, result 0. When I look at the /mavros/state, it is connected and in offboard mode, but it keeps flipping between arm/disarm. Any advice? |
have you solve this problem?i meet the same problem, can you give me some help? thanks |
Hi @physics-lzs, in case you are still having this issue, you may need to publish setpoint_attitude/thrust and give it a value that's > 0.5 to see some effects. If you continue to see the same observation as earlier posts, publish attitude commands to setpoint_raw/attitude instead. Again, remember to give a value to your thrust :) Hope this helps! |
Could you please provide more clarification @thealchemist89 , I am facing this issue while running the example here , sometimes it works and some other times running the ROS node keeps giving me |
Which version of PX4-Autopilot are you using? I have tested a lot of possibilities here and with the last release (version 12) I have this problem, the drone stays in fail safe mode and it doesn't take off. A friend of mine tested the same commands on his PC and works, so we tried to step back in the version, now I'm using version PX4-Autopilot 11.3 (the last version that worked for me) and it is working fine now! To flight using commander directly the PX4 it is needed to define the takeoff point to avoid error. To flight using script you just keep the position and the drone stays stable! About the PX4-Avoindace I haven't success to run on my actual PC. OS: Ubuntu 18 |
Hello,
I am running the PX4 SITL with Gazebo and am trying to command the attitude using the setpoint_* topics. I am able to successfully connect over UDP with mavros however when I publish to the /mavros/setpoint_raw/attitude topic, the quadcopter in the Gazebo environment immediately falls to the ground after commanding to OFFBOARD mode. The "make posix_sitl default gazebo" terminal output then prints out the warning "uORB::DeviceNode::publish called with invalid handle" and the terminal output from the mavros node prints out the warning "CMD: Unexpected command 176, result 0".
This happens when I publish to both the /mavros/setpoint_attitude/attitude and /mavros/setpoint_raw/attitude topics however I am able to command position using the /mavros/setpoint_position/local topic.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: