Mavros Multicopter turnover?

#1

Hİ, I am using gazebo with gazebo_typhoon_h480 model. I can send arm,takeoff,land commands. I want to make offboard control. I searched I have to use /mavros/setpoint_attitude/cmd_vel.

I published following message, But drone doesn’t turn over.

ros::Publisher local_att_pub = nh.advertise<geometry_msgs::TwistStamped>
        ("/mavros/setpoint_attitude/cmd_vel", 10);

twmsg.header.stamp = ros::Time::now();
twmsg.header.seq=twmsg.header.seq++;
twmsg.twist.angular.z = 1;
               
local_att_pub.publish(twmsg);

Can you help me? What is wrong?

#2

@saucompeng There is a time out on the rate of setpoints you need to publish. Please refer to this document