Robotics StackExchange | Archived questions

mavlink_msg_heartbeat_pack

This function was called in Line 249 of main.c but i cannot find the code for this function in any other c or header file.

Please advise.

Asked by MavTan on 2016-04-07 04:23:34 UTC

Comments

In the future when asking questions, please include a link to the source code or package that you're trying to compile. There are many, many files named main.c

Asked by ahendrix on 2016-04-07 04:30:50 UTC

I suspect this function is part of the generated code for encoding and decoding mavlink messages. You may want to look at the mavlink documentation.

Asked by ahendrix on 2016-04-07 04:31:38 UTC

Thanks.

The link is http://docs.ros.org/jade/api/mavlink/html/main_8c_source.html

Where to get the mavlink documentation? I cannot find it in ROS site.

Asked by MavTan on 2016-04-07 04:36:04 UTC

Mavlink is a separate project; it's just included in ROS for convenience. They have their own website: http://qgroundcontrol.org/mavlink/start

Asked by ahendrix on 2016-04-07 05:05:00 UTC

Answers