MAV'RIC
|
00001 /******************************************************************************* 00002 * Copyright (c) 2009-2016, MAV'RIC Development Team 00003 * All rights reserved. 00004 * 00005 * Redistribution and use in source and binary forms, with or without 00006 * modification, are permitted provided that the following conditions are met: 00007 * 00008 * 1. Redistributions of source code must retain the above copyright notice, 00009 * this list of conditions and the following disclaimer. 00010 * 00011 * 2. Redistributions in binary form must reproduce the above copyright notice, 00012 * this list of conditions and the following disclaimer in the documentation 00013 * and/or other materials provided with the distribution. 00014 * 00015 * 3. Neither the name of the copyright holder nor the names of its contributors 00016 * may be used to endorse or promote products derived from this software without 00017 * specific prior written permission. 00018 * 00019 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00020 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00021 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00022 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 00023 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00024 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00025 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00026 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00027 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00028 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00029 * POSSIBILITY OF SUCH DAMAGE. 00030 ******************************************************************************/ 00031 00032 /******************************************************************************* 00033 * \file imu_config.hpp 00034 * 00035 * \author MAV'RIC Team 00036 * 00037 * \brief This file configures the imu of the maveric autopilot 00038 * 00039 ******************************************************************************/ 00040 00041 00042 #ifndef IMU_CONFIG_HPP_ 00043 #define IMU_CONFIG_HPP_ 00044 00045 extern "C" 00046 { 00047 #include "sample_projects/LEQuad/proj_avr32/config/conf_platform.h" // To get the MAVLINK_SYS_ID 00048 } 00049 00051 // #if MAVLINK_SYS_ID == 1 00052 // #include "MAVcalib/MAV001_imu_config.hpp" 00053 // #elif MAVLINK_SYS_ID == 2 00054 // #include "MAVcalib/MAV002_imu_config.hpp" 00055 // #elif MAVLINK_SYS_ID == 3 00056 // #include "MAVcalib/MAV003_imu_config.hpp" 00057 // #elif MAVLINK_SYS_ID == 4 00058 // #include "MAVcalib/MAV004_imu_config.hpp" 00059 // #elif MAVLINK_SYS_ID == 5 00060 // #include "MAVcalib/MAV005_imu_config.hpp" 00061 // #elif MAVLINK_SYS_ID == 6 00062 // #include "MAVcalib/MAV006_imu_config.hpp" 00063 // #elif MAVLINK_SYS_ID == 7 00064 // #include "MAVcalib/MAV007_imu_config.hpp" 00065 // #elif MAVLINK_SYS_ID == 8 00066 // #include "MAVcalib/MAV008_imu_config.hpp" 00067 // #elif MAVLINK_SYS_ID == 9 00068 // #include "MAVcalib/MAV009_imu_config.hpp" 00069 // #elif MAVLINK_SYS_ID == 10 00070 // #include "MAVcalib/MAV010_imu_config.hpp" 00071 // #elif MAVLINK_SYS_ID == 42 00072 // #include "MAVcalib/MAV042_imu_config.hpp" 00073 // #elif MAVLINK_SYS_ID == 51 00074 // #include "MAVcalib/MAV051_imu_config.hpp" 00075 // #elif MAVLINK_SYS_ID == 101 00076 // #include "MAVcalib/MAV101_imu_config.hpp" 00077 // #elif MAVLINK_SYS_ID == 102 00078 // #include "MAVcalib/MAV102_imu_config.hpp" 00079 // #elif MAVLINK_SYS_ID == 128 00080 // #include "MAVcalib/MAV128_imu_config.hpp" 00081 // #elif MAVLINK_SYS_ID == 150 00082 // #include "MAVcalib/MAV150_imu_config.h" 00083 // #elif MAVLINK_SYS_ID == 201 00084 // #include "MAVcalib/MAV201_imu_config.hpp" 00085 // #elif MAVLINK_SYS_ID == 202 00086 // #include "MAVcalib/MAV202_imu_config.hpp" 00087 // #elif MAVLINK_SYS_ID == 203 00088 // #include "MAVcalib/MAV203_imu_config.hpp" 00089 // #elif MAVLINK_SYS_ID == 204 00090 // #include "MAVcalib/MAV204_imu_config.hpp" 00091 // #elif MAVLINK_SYS_ID == 205 00092 // #include "MAVcalib/MAV205_imu_config.h" 00093 // #elif MAVLINK_SYS_ID == 206 00094 // #include "MAVcalib/MAV206_imu_config.h" 00095 // #else 00096 // #warning "Unknown IMU calibration for the board with ID MAVLINK_SYS_ID, falling back to imu_default_config" 00097 #include "sensing/imu.hpp" 00098 #include "boards/megafly_rev4/megafly_rev4.hpp" 00099 00100 static inline imu_conf_t imu_config(void) 00101 { 00102 return megafly_rev4_default_config().imu_config; 00103 } 00104 // #endif 00105 00106 #endif /* IMU_CONFIG_HPP_ */