Code for autonomous ground vehicle, Data Bus, 3rd place winner in 2012 Sparkfun AVC.
Dependencies: Watchdog mbed Schedule SimpleFilter LSM303DLM PinDetect DebounceIn Servo
ualberta.h
00001 /** @file 00002 * @brief MAVLink comm protocol. 00003 * @see http://qgroundcontrol.org/mavlink/ 00004 * Generated on Friday, August 5 2011, 07:37 UTC 00005 */ 00006 #ifndef UALBERTA_H 00007 #define UALBERTA_H 00008 00009 #ifdef __cplusplus 00010 extern "C" { 00011 #endif 00012 00013 00014 #include "../protocol.h" 00015 00016 #define MAVLINK_ENABLED_UALBERTA 00017 00018 00019 #include "../common/common.h" 00020 // MAVLINK VERSION 00021 00022 #ifndef MAVLINK_VERSION 00023 #define MAVLINK_VERSION 0 00024 #endif 00025 00026 #if (MAVLINK_VERSION == 0) 00027 #undef MAVLINK_VERSION 00028 #define MAVLINK_VERSION 0 00029 #endif 00030 00031 // ENUM DEFINITIONS 00032 00033 /** @brief Available autopilot modes for ualberta uav */ 00034 enum UALBERTA_AUTOPILOT_MODE 00035 { 00036 MODE_MANUAL_DIRECT=0, /* */ 00037 MODE_MANUAL_SCALED=1, /* */ 00038 MODE_AUTO_PID_ATT=2, /* */ 00039 MODE_AUTO_PID_VEL=3, /* */ 00040 MODE_AUTO_PID_POS=4, /* */ 00041 UALBERTA_AUTOPILOT_MODE_ENUM_END 00042 }; 00043 00044 /** @brief Navigation filter mode */ 00045 enum UALBERTA_NAV_MODE 00046 { 00047 NAV_AHRS_INIT=0, 00048 NAV_AHRS=1, /* */ 00049 NAV_INS_GPS_INIT=2, /* */ 00050 NAV_INS_GPS=3, /* */ 00051 UALBERTA_NAV_MODE_ENUM_END 00052 }; 00053 00054 /** @brief Mode currently commanded by pilot */ 00055 enum UALBERTA_PILOT_MODE 00056 { 00057 PILOT_MANUAL=0, /* */ 00058 PILOT_AUTO=1, /* */ 00059 PILOT_ROTO=2, /* */ 00060 UALBERTA_PILOT_MODE_ENUM_END 00061 }; 00062 00063 00064 // MESSAGE DEFINITIONS 00065 00066 #include "./mavlink_msg_nav_filter_bias.h" 00067 #include "./mavlink_msg_radio_calibration.h" 00068 #include "./mavlink_msg_ualberta_sys_status.h" 00069 00070 00071 // MESSAGE LENGTHS 00072 00073 #undef MAVLINK_MESSAGE_LENGTHS 00074 #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 } 00075 00076 #ifdef __cplusplus 00077 } 00078 #endif 00079 #endif
Generated on Tue Jul 12 2022 14:09:28 by 1.7.2