Code for autonomous ground vehicle, Data Bus, 3rd place winner in 2012 Sparkfun AVC.

Dependencies:   Watchdog mbed Schedule SimpleFilter LSM303DLM PinDetect DebounceIn Servo

Committer:
shimniok
Date:
Wed Jun 20 14:57:48 2012 +0000
Revision:
0:826c6171fc1b
Updated documentation

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shimniok 0:826c6171fc1b 1 /** @file
shimniok 0:826c6171fc1b 2 * @brief MAVLink comm protocol.
shimniok 0:826c6171fc1b 3 * @see http://qgroundcontrol.org/mavlink/
shimniok 0:826c6171fc1b 4 * Generated on Sunday, September 11 2011, 13:52 UTC
shimniok 0:826c6171fc1b 5 */
shimniok 0:826c6171fc1b 6 #ifndef PIXHAWK_H
shimniok 0:826c6171fc1b 7 #define PIXHAWK_H
shimniok 0:826c6171fc1b 8
shimniok 0:826c6171fc1b 9 #ifdef __cplusplus
shimniok 0:826c6171fc1b 10 extern "C" {
shimniok 0:826c6171fc1b 11 #endif
shimniok 0:826c6171fc1b 12
shimniok 0:826c6171fc1b 13
shimniok 0:826c6171fc1b 14 #include "../protocol.h"
shimniok 0:826c6171fc1b 15
shimniok 0:826c6171fc1b 16 #define MAVLINK_ENABLED_PIXHAWK
shimniok 0:826c6171fc1b 17
shimniok 0:826c6171fc1b 18
shimniok 0:826c6171fc1b 19 #include "../common/common.h"
shimniok 0:826c6171fc1b 20 // MAVLINK VERSION
shimniok 0:826c6171fc1b 21
shimniok 0:826c6171fc1b 22 #ifndef MAVLINK_VERSION
shimniok 0:826c6171fc1b 23 #define MAVLINK_VERSION 0
shimniok 0:826c6171fc1b 24 #endif
shimniok 0:826c6171fc1b 25
shimniok 0:826c6171fc1b 26 #if (MAVLINK_VERSION == 0)
shimniok 0:826c6171fc1b 27 #undef MAVLINK_VERSION
shimniok 0:826c6171fc1b 28 #define MAVLINK_VERSION 0
shimniok 0:826c6171fc1b 29 #endif
shimniok 0:826c6171fc1b 30
shimniok 0:826c6171fc1b 31 // ENUM DEFINITIONS
shimniok 0:826c6171fc1b 32
shimniok 0:826c6171fc1b 33 /** @brief Content Types for data transmission handshake */
shimniok 0:826c6171fc1b 34 enum DATA_TYPES
shimniok 0:826c6171fc1b 35 {
shimniok 0:826c6171fc1b 36 DATA_TYPE_JPEG_IMAGE=1,
shimniok 0:826c6171fc1b 37 DATA_TYPE_RAW_IMAGE=2,
shimniok 0:826c6171fc1b 38 DATA_TYPE_KINECT=3,
shimniok 0:826c6171fc1b 39 DATA_TYPES_ENUM_END
shimniok 0:826c6171fc1b 40 };
shimniok 0:826c6171fc1b 41
shimniok 0:826c6171fc1b 42
shimniok 0:826c6171fc1b 43 // MESSAGE DEFINITIONS
shimniok 0:826c6171fc1b 44
shimniok 0:826c6171fc1b 45 #include "./mavlink_msg_attitude_control.h"
shimniok 0:826c6171fc1b 46 #include "./mavlink_msg_set_cam_shutter.h"
shimniok 0:826c6171fc1b 47 #include "./mavlink_msg_image_triggered.h"
shimniok 0:826c6171fc1b 48 #include "./mavlink_msg_image_trigger_control.h"
shimniok 0:826c6171fc1b 49 #include "./mavlink_msg_image_available.h"
shimniok 0:826c6171fc1b 50 #include "./mavlink_msg_vision_position_estimate.h"
shimniok 0:826c6171fc1b 51 #include "./mavlink_msg_global_vision_position_estimate.h"
shimniok 0:826c6171fc1b 52 #include "./mavlink_msg_vicon_position_estimate.h"
shimniok 0:826c6171fc1b 53 #include "./mavlink_msg_vision_speed_estimate.h"
shimniok 0:826c6171fc1b 54 #include "./mavlink_msg_position_control_setpoint_set.h"
shimniok 0:826c6171fc1b 55 #include "./mavlink_msg_position_control_offset_set.h"
shimniok 0:826c6171fc1b 56 #include "./mavlink_msg_position_control_setpoint.h"
shimniok 0:826c6171fc1b 57 #include "./mavlink_msg_marker.h"
shimniok 0:826c6171fc1b 58 #include "./mavlink_msg_raw_aux.h"
shimniok 0:826c6171fc1b 59 #include "./mavlink_msg_aux_status.h"
shimniok 0:826c6171fc1b 60 #include "./mavlink_msg_watchdog_heartbeat.h"
shimniok 0:826c6171fc1b 61 #include "./mavlink_msg_watchdog_process_info.h"
shimniok 0:826c6171fc1b 62 #include "./mavlink_msg_watchdog_process_status.h"
shimniok 0:826c6171fc1b 63 #include "./mavlink_msg_watchdog_command.h"
shimniok 0:826c6171fc1b 64 #include "./mavlink_msg_pattern_detected.h"
shimniok 0:826c6171fc1b 65 #include "./mavlink_msg_point_of_interest.h"
shimniok 0:826c6171fc1b 66 #include "./mavlink_msg_point_of_interest_connection.h"
shimniok 0:826c6171fc1b 67 #include "./mavlink_msg_data_transmission_handshake.h"
shimniok 0:826c6171fc1b 68 #include "./mavlink_msg_encapsulated_data.h"
shimniok 0:826c6171fc1b 69 #include "./mavlink_msg_brief_feature.h"
shimniok 0:826c6171fc1b 70 #include "./mavlink_msg_visual_odometry.h"
shimniok 0:826c6171fc1b 71
shimniok 0:826c6171fc1b 72
shimniok 0:826c6171fc1b 73 // MESSAGE LENGTHS
shimniok 0:826c6171fc1b 74
shimniok 0:826c6171fc1b 75 #undef MAVLINK_MESSAGE_LENGTHS
shimniok 0:826c6171fc1b 76 #define MAVLINK_MESSAGE_LENGTHS { 3, 4, 8, 14, 8, 28, 3, 32, 0, 2, 3, 2, 2, 0, 0, 0, 0, 0, 0, 0, 19, 2, 23, 21, 0, 37, 26, 101, 26, 16, 32, 32, 37, 32, 11, 17, 17, 16, 18, 36, 4, 4, 2, 2, 4, 2, 2, 3, 14, 12, 18, 16, 8, 27, 25, 18, 18, 24, 24, 0, 0, 0, 26, 16, 36, 5, 6, 56, 26, 21, 18, 0, 0, 18, 20, 20, 8, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 52, 1, 92, 0, 0, 0, 0, 0, 0, 0, 32, 32, 20, 32, 0, 0, 0, 0, 0, 20, 18, 0, 0, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 16, 12, 0, 0, 0, 0, 0, 0, 0, 4, 255, 12, 6, 18, 0, 0, 0, 0, 0, 106, 42, 54, 0, 0, 0, 0, 0, 0, 0, 8, 255, 53, 0, 0, 0, 0, 0, 0, 0, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 14, 14, 51 }
shimniok 0:826c6171fc1b 77
shimniok 0:826c6171fc1b 78 #ifdef __cplusplus
shimniok 0:826c6171fc1b 79 }
shimniok 0:826c6171fc1b 80 #endif
shimniok 0:826c6171fc1b 81 #endif