mavlink / c_uart_interface_example

Simple MAVLink to UART interface example for *nix systems
264 stars 257 forks source link

Can not fly ! #37

Closed 1556260456 closed 2 years ago

1556260456 commented 2 years ago

Hello, I am trying to fly my quadrocopter drones. And my platform is NVIDIA Xavier-(Linux),I use this uart-interface and the example in it ,try to let the uav fly to 2m. I had the blades removed indoors for the experiment, and the GPS signal was good,after I run mavlink_control , I can see the flight mode changed into offboard,But none of the four motors responded, and soon the safety switch was locked again. How conld I make the uav fly to 2m by sending mavlink message from linux uart?

hamishwillee commented 2 years ago

What flight stack? Are you streaming the offboard commands? If so, at what rate?

1556260456 commented 2 years ago

That is my mistake, I did not notice this code,after I ignore them,everything is OK if(autotakeoff) { sp.type_mask |=MAVLINK_MSG_SET_POSITION_TARGET_LOCAL_NED_TAKEOFF }