![](/media/cache/profiles/2012_sf_avc_095.jpg.50x50_q85.jpg)
Code for autonomous rover for Sparkfun AVC. DataBus won 3rd in 2012 and the same code was used on Troubled Child, a 1986 Jeep Grand Wagoneer to win 1st in 2014.
Dependencies: mbed Watchdog SDFileSystem DigoleSerialDisp
MAVlink/include/pixhawk/pixhawk.h@25:bb5356402687, 2018-11-30 (annotated)
- Committer:
- shimniok
- Date:
- Fri Nov 30 16:11:53 2018 +0000
- Revision:
- 25:bb5356402687
- Parent:
- 0:a6a169de725f
Initial publish of revised version.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shimniok | 0:a6a169de725f | 1 | /** @file |
shimniok | 0:a6a169de725f | 2 | * @brief MAVLink comm protocol. |
shimniok | 0:a6a169de725f | 3 | * @see http://qgroundcontrol.org/mavlink/ |
shimniok | 0:a6a169de725f | 4 | * Generated on Sunday, September 11 2011, 13:52 UTC |
shimniok | 0:a6a169de725f | 5 | */ |
shimniok | 0:a6a169de725f | 6 | #ifndef PIXHAWK_H |
shimniok | 0:a6a169de725f | 7 | #define PIXHAWK_H |
shimniok | 0:a6a169de725f | 8 | |
shimniok | 0:a6a169de725f | 9 | #ifdef __cplusplus |
shimniok | 0:a6a169de725f | 10 | extern "C" { |
shimniok | 0:a6a169de725f | 11 | #endif |
shimniok | 0:a6a169de725f | 12 | |
shimniok | 0:a6a169de725f | 13 | |
shimniok | 0:a6a169de725f | 14 | #include "../protocol.h" |
shimniok | 0:a6a169de725f | 15 | |
shimniok | 0:a6a169de725f | 16 | #define MAVLINK_ENABLED_PIXHAWK |
shimniok | 0:a6a169de725f | 17 | |
shimniok | 0:a6a169de725f | 18 | |
shimniok | 0:a6a169de725f | 19 | #include "../common/common.h" |
shimniok | 0:a6a169de725f | 20 | // MAVLINK VERSION |
shimniok | 0:a6a169de725f | 21 | |
shimniok | 0:a6a169de725f | 22 | #ifndef MAVLINK_VERSION |
shimniok | 0:a6a169de725f | 23 | #define MAVLINK_VERSION 0 |
shimniok | 0:a6a169de725f | 24 | #endif |
shimniok | 0:a6a169de725f | 25 | |
shimniok | 0:a6a169de725f | 26 | #if (MAVLINK_VERSION == 0) |
shimniok | 0:a6a169de725f | 27 | #undef MAVLINK_VERSION |
shimniok | 0:a6a169de725f | 28 | #define MAVLINK_VERSION 0 |
shimniok | 0:a6a169de725f | 29 | #endif |
shimniok | 0:a6a169de725f | 30 | |
shimniok | 0:a6a169de725f | 31 | // ENUM DEFINITIONS |
shimniok | 0:a6a169de725f | 32 | |
shimniok | 0:a6a169de725f | 33 | /** @brief Content Types for data transmission handshake */ |
shimniok | 0:a6a169de725f | 34 | enum DATA_TYPES |
shimniok | 0:a6a169de725f | 35 | { |
shimniok | 0:a6a169de725f | 36 | DATA_TYPE_JPEG_IMAGE=1, |
shimniok | 0:a6a169de725f | 37 | DATA_TYPE_RAW_IMAGE=2, |
shimniok | 0:a6a169de725f | 38 | DATA_TYPE_KINECT=3, |
shimniok | 0:a6a169de725f | 39 | DATA_TYPES_ENUM_END |
shimniok | 0:a6a169de725f | 40 | }; |
shimniok | 0:a6a169de725f | 41 | |
shimniok | 0:a6a169de725f | 42 | |
shimniok | 0:a6a169de725f | 43 | // MESSAGE DEFINITIONS |
shimniok | 0:a6a169de725f | 44 | |
shimniok | 0:a6a169de725f | 45 | #include "./mavlink_msg_attitude_control.h" |
shimniok | 0:a6a169de725f | 46 | #include "./mavlink_msg_set_cam_shutter.h" |
shimniok | 0:a6a169de725f | 47 | #include "./mavlink_msg_image_triggered.h" |
shimniok | 0:a6a169de725f | 48 | #include "./mavlink_msg_image_trigger_control.h" |
shimniok | 0:a6a169de725f | 49 | #include "./mavlink_msg_image_available.h" |
shimniok | 0:a6a169de725f | 50 | #include "./mavlink_msg_vision_position_estimate.h" |
shimniok | 0:a6a169de725f | 51 | #include "./mavlink_msg_global_vision_position_estimate.h" |
shimniok | 0:a6a169de725f | 52 | #include "./mavlink_msg_vicon_position_estimate.h" |
shimniok | 0:a6a169de725f | 53 | #include "./mavlink_msg_vision_speed_estimate.h" |
shimniok | 0:a6a169de725f | 54 | #include "./mavlink_msg_position_control_setpoint_set.h" |
shimniok | 0:a6a169de725f | 55 | #include "./mavlink_msg_position_control_offset_set.h" |
shimniok | 0:a6a169de725f | 56 | #include "./mavlink_msg_position_control_setpoint.h" |
shimniok | 0:a6a169de725f | 57 | #include "./mavlink_msg_marker.h" |
shimniok | 0:a6a169de725f | 58 | #include "./mavlink_msg_raw_aux.h" |
shimniok | 0:a6a169de725f | 59 | #include "./mavlink_msg_aux_status.h" |
shimniok | 0:a6a169de725f | 60 | #include "./mavlink_msg_watchdog_heartbeat.h" |
shimniok | 0:a6a169de725f | 61 | #include "./mavlink_msg_watchdog_process_info.h" |
shimniok | 0:a6a169de725f | 62 | #include "./mavlink_msg_watchdog_process_status.h" |
shimniok | 0:a6a169de725f | 63 | #include "./mavlink_msg_watchdog_command.h" |
shimniok | 0:a6a169de725f | 64 | #include "./mavlink_msg_pattern_detected.h" |
shimniok | 0:a6a169de725f | 65 | #include "./mavlink_msg_point_of_interest.h" |
shimniok | 0:a6a169de725f | 66 | #include "./mavlink_msg_point_of_interest_connection.h" |
shimniok | 0:a6a169de725f | 67 | #include "./mavlink_msg_data_transmission_handshake.h" |
shimniok | 0:a6a169de725f | 68 | #include "./mavlink_msg_encapsulated_data.h" |
shimniok | 0:a6a169de725f | 69 | #include "./mavlink_msg_brief_feature.h" |
shimniok | 0:a6a169de725f | 70 | #include "./mavlink_msg_visual_odometry.h" |
shimniok | 0:a6a169de725f | 71 | |
shimniok | 0:a6a169de725f | 72 | |
shimniok | 0:a6a169de725f | 73 | // MESSAGE LENGTHS |
shimniok | 0:a6a169de725f | 74 | |
shimniok | 0:a6a169de725f | 75 | #undef MAVLINK_MESSAGE_LENGTHS |
shimniok | 0:a6a169de725f | 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:a6a169de725f | 77 | |
shimniok | 0:a6a169de725f | 78 | #ifdef __cplusplus |
shimniok | 0:a6a169de725f | 79 | } |
shimniok | 0:a6a169de725f | 80 | #endif |
shimniok | 0:a6a169de725f | 81 | #endif |