Open bobolodrone opened 4 years ago
Look at this topic: https://github.com/mavlink/mavros/issues/1204
This person changed the baud rate to get better responses. Maybe works for you as well.
Thank for your answer, I tried it but nothing. I saw that local pose give me negative number-5m)maybe this the problem so The drone want To fly up for 5,30 m. What do you think?
Thanks for the answer. I tried it but nothing. I saw That local pose give me negative number (-5m) so, maybe, the drone want to flight up for 5.30 m. What do you think about it?
@bobolodrone have you solve the problem?
Hi everyone, I am new here and I hope that I didn’t skip any step in order to public a topic :slight_smile: I built a drone and a would like to use the offboard mode in order to program my own code. Yesterday i used this code and when the drone took off from the ground didn’t reach 0.30 m but continued to rise until it hit the ceiling (2.80m). i don’t understand why this error. i attached my code here.
include <ros/ros.h>
include <geometry_msgs/PoseStamped.h>
include <mavros_msgs/CommandBool.h>
include <mavros_msgs/CommandTOL.h>
include <mavros_msgs/SetMode.h>
include <mavros_msgs/State.h>
define FLIGHT_ALTITUDE 0.3f
mavros_msgs::State current_state; void state_cb(const mavros_msgs::State::ConstPtr& msg){ current_state = *msg; }
int main(int argc, char **argv) { ros::init(argc, argv, "off_square"); ros::NodeHandle nh;
}