Hello, I’m trying to build a ground control application using MAVROS. I am sending manual control messages to mavros (/mavros/manual_control/send) but I get no reaction from MAVROS or even from SITL’s console. When trying with a real pixhawk (APM), the motors don’t start when sending manual control messages. Psuedo-code:
let manual_control_pub = ros::publisher::publisher::<mavros_msgs::ManualControl>(
literal!("/mavros/manual_control/send"),
100,
)
loop {
sleep(50);
let (x, y, z, r, buttons) = controller.generate_message();
let header = rosrust_msg::std_msgs::Header {
seq: counter,
stamp: Time::now()
frame_id: "keyboard_controller",
};
counter += 1;
let message = ManualControl {
header,
x,
y,
z,
r,
buttons,
};
manual_control_pub.send(message);
}
More logs can be found at my github issue Manual Control doesn't work · Issue #1844 · mavlink/mavros · GitHub