mavlink / c_uart_interface_example

Simple MAVLink to UART interface example for *nix systems
275 stars 260 forks source link

Couldn't find <common/mavlink.h> file #18

Closed MainReturnZero closed 8 years ago

MainReturnZero commented 8 years ago

hi, When I run "make" to build this project, it shows the library included in mavlink_control.h <common/mavlink.h> couldn't be found. Any ideas?

LorenzMeier commented 8 years ago

Run git submodule init and update as per the documentation

MainReturnZero commented 8 years ago

Sorry, but where I can find the documentation? I now can build the code, but after I login with "screen", I can't type on the shell to run the step 2: nsh> mavlink start -d /dev/ttyACM0. I can also run step 3, and the output stop at "CHECK FOR HEARTBEAT". Sorry for being silly, but I am new to MAVLink, could you help me out a little please?

JMare commented 8 years ago

Hi mate, I have never been able to get a nsh shell on the usb port of my pixhawk, not sure why, but I can always get a shell through serial 5 and a ftdi board. It should be possible over usb of course, but you could try this if you have a ftdi lying around (make sure you are on serial 5 not 4). Once you run start mavlink on a different port you should get a hearbeat.