![](/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/ualberta/ualberta.h@0:a6a169de725f, 2013-05-27 (annotated)
- Committer:
- shimniok
- Date:
- Mon May 27 13:26:03 2013 +0000
- Revision:
- 0:a6a169de725f
Working version with priorities set and update time display
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 Friday, August 5 2011, 07:37 UTC |
shimniok | 0:a6a169de725f | 5 | */ |
shimniok | 0:a6a169de725f | 6 | #ifndef UALBERTA_H |
shimniok | 0:a6a169de725f | 7 | #define UALBERTA_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_UALBERTA |
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 Available autopilot modes for ualberta uav */ |
shimniok | 0:a6a169de725f | 34 | enum UALBERTA_AUTOPILOT_MODE |
shimniok | 0:a6a169de725f | 35 | { |
shimniok | 0:a6a169de725f | 36 | MODE_MANUAL_DIRECT=0, /* */ |
shimniok | 0:a6a169de725f | 37 | MODE_MANUAL_SCALED=1, /* */ |
shimniok | 0:a6a169de725f | 38 | MODE_AUTO_PID_ATT=2, /* */ |
shimniok | 0:a6a169de725f | 39 | MODE_AUTO_PID_VEL=3, /* */ |
shimniok | 0:a6a169de725f | 40 | MODE_AUTO_PID_POS=4, /* */ |
shimniok | 0:a6a169de725f | 41 | UALBERTA_AUTOPILOT_MODE_ENUM_END |
shimniok | 0:a6a169de725f | 42 | }; |
shimniok | 0:a6a169de725f | 43 | |
shimniok | 0:a6a169de725f | 44 | /** @brief Navigation filter mode */ |
shimniok | 0:a6a169de725f | 45 | enum UALBERTA_NAV_MODE |
shimniok | 0:a6a169de725f | 46 | { |
shimniok | 0:a6a169de725f | 47 | NAV_AHRS_INIT=0, |
shimniok | 0:a6a169de725f | 48 | NAV_AHRS=1, /* */ |
shimniok | 0:a6a169de725f | 49 | NAV_INS_GPS_INIT=2, /* */ |
shimniok | 0:a6a169de725f | 50 | NAV_INS_GPS=3, /* */ |
shimniok | 0:a6a169de725f | 51 | UALBERTA_NAV_MODE_ENUM_END |
shimniok | 0:a6a169de725f | 52 | }; |
shimniok | 0:a6a169de725f | 53 | |
shimniok | 0:a6a169de725f | 54 | /** @brief Mode currently commanded by pilot */ |
shimniok | 0:a6a169de725f | 55 | enum UALBERTA_PILOT_MODE |
shimniok | 0:a6a169de725f | 56 | { |
shimniok | 0:a6a169de725f | 57 | PILOT_MANUAL=0, /* */ |
shimniok | 0:a6a169de725f | 58 | PILOT_AUTO=1, /* */ |
shimniok | 0:a6a169de725f | 59 | PILOT_ROTO=2, /* */ |
shimniok | 0:a6a169de725f | 60 | UALBERTA_PILOT_MODE_ENUM_END |
shimniok | 0:a6a169de725f | 61 | }; |
shimniok | 0:a6a169de725f | 62 | |
shimniok | 0:a6a169de725f | 63 | |
shimniok | 0:a6a169de725f | 64 | // MESSAGE DEFINITIONS |
shimniok | 0:a6a169de725f | 65 | |
shimniok | 0:a6a169de725f | 66 | #include "./mavlink_msg_nav_filter_bias.h" |
shimniok | 0:a6a169de725f | 67 | #include "./mavlink_msg_radio_calibration.h" |
shimniok | 0:a6a169de725f | 68 | #include "./mavlink_msg_ualberta_sys_status.h" |
shimniok | 0:a6a169de725f | 69 | |
shimniok | 0:a6a169de725f | 70 | |
shimniok | 0:a6a169de725f | 71 | // MESSAGE LENGTHS |
shimniok | 0:a6a169de725f | 72 | |
shimniok | 0:a6a169de725f | 73 | #undef MAVLINK_MESSAGE_LENGTHS |
shimniok | 0:a6a169de725f | 74 | #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, 14, 14, 0, 0, 0, 5, 5, 26, 16, 36, 5, 6, 56, 0, 21, 18, 0, 0, 18, 20, 20, 8, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 42, 3, 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 | 75 | |
shimniok | 0:a6a169de725f | 76 | #ifdef __cplusplus |
shimniok | 0:a6a169de725f | 77 | } |
shimniok | 0:a6a169de725f | 78 | #endif |
shimniok | 0:a6a169de725f | 79 | #endif |