-
Notifications
You must be signed in to change notification settings - Fork 1k
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
mavros/setpoint_position/local : Not working #729
Comments
[ERROR] [1497439390.804899443]: FCU: Failsafe enabled: no RC and no offboard The problem is here. Then [ERROR] [1497366588.498711872]: FCU: main state transition denied You have to send a stream of setpoints before and during so the FCU is able to change and maintain the //send a few setpoints before starting
for(int i = 100; ros::ok() && i > 0; --i){
local_pos_pub.publish(pose);
ros::spinOnce();
rate.sleep();
}
mavros_msgs::SetMode offb_set_mode;
offb_set_mode.request.custom_mode = "OFFBOARD";
mavros_msgs::CommandBool arm_cmd;
arm_cmd.request.value = true; |
@TSC21 , yes I am doing the same. I send coordinates before changing flight mode to offboard.
|
run |
The problem has to be on your code. |
|
I am running https://github.com/b-rohit/offboardnav/blob/master/src/offb_node.cpp. when it arms the drone I ran following commands in another window. which explains why does it disarm in between, but I am not able to find why does it stop publishing messages. I put some debug messages and found it sticks while execute following peace of code> $ rostopic hz /mavros/local_position/pose There is an issue with /mavros/local_position/pose topic in px4fmu-v2_lpe firmware. it works with px4fmu-v2_default. |
I changed lpe mocap timeout from 2s to 5s and rate to 30hz. Now it is working. |
Good to know |
Dear Sir, We're running in Offboard mode and sending a set_attitude_target message through Mavlink. It seems that the roll and pitch angle/rate commands work fine but the yaw angle/rate doesn't work at all. Please advise |
question details
I want to send mocap position data to pixhawk. I wrote a simple program based on https://dev.px4.io/en/ros/mavros_offboard.html. my source code is here https://github.com/b-rohit/offboardnav.
I have tested it in Gazebo simulation environment and It works fine. I want to emulate the same on quacopter based on pixhawk. I followed the tutorial https://dev.px4.io/en/ros/external_position_estimation.html. when I run my program it arms the copter but disarm automatically after 5-6 sec and arm again ... It subscribes to "mavros/local_position/pose" topic to get current position, but the callback for the topic never get called.
I keep getting following error
[ERROR] [1497439390.804899443]: FCU: Failsafe enabled: no RC and no offboard
[ INFO] [1497439391.052993584]: FCU: Failsafe mode enabled
[ WARN] [1497439391.072776041]: PR: request param #79 timeout, retries left 1, and 584 params still missing
[ INFO] [1497439391.091944381]: FCU: Failsafe mode disabled
when I try to change flight mode to offboard using rc controller than I get below error message>
[ERROR] [1497366588.498711872]: FCU: main state transition denied
MAVROS version and platform
Mavros: 0.19.0
ROS: Kinetic
Ubuntu: 16.04
Autopilot type and version
[X ] PX4
Node logs
Diagnostics
Check ID
`OK. I got messages from 1:1.
Received 557 messages, from 15 addresses
sys:comp list of messages
62:187 204
1:66 49
152:51 68
69:95 83
0:186 2
254:9 163
1:80 87
51:68 109, 166
1:24 106
1:82 67
0:0 0
1:0 0
134:17 186
1:190 11
1:1 0, 1, 2, 128, 147, 22, 24, 30, 36, 44, 181, 74, 77, 82, 83, 84, 86, 87, 100, 105, 111, 245
`
The text was updated successfully, but these errors were encountered: