Path: blob/master/libraries/AP_ExternalAHRS/AP_ExternalAHRS_backend.cpp
9532 views
/*1This program is free software: you can redistribute it and/or modify2it under the terms of the GNU General Public License as published by3the Free Software Foundation, either version 3 of the License, or4(at your option) any later version.56This program is distributed in the hope that it will be useful,7but WITHOUT ANY WARRANTY; without even the implied warranty of8MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9GNU General Public License for more details.1011You should have received a copy of the GNU General Public License12along with this program. If not, see <http://www.gnu.org/licenses/>.13*/14/*15parent class for ExternalAHRS backends16*/1718#include "AP_ExternalAHRS_backend.h"19#include <AP_AHRS/AP_AHRS.h>2021#if AP_EXTERNAL_AHRS_ENABLED2223AP_ExternalAHRS_backend::AP_ExternalAHRS_backend(AP_ExternalAHRS *_frontend,24AP_ExternalAHRS::state_t &_state) :25state(_state),26frontend(*_frontend)27{}282930uint16_t AP_ExternalAHRS_backend::get_rate(void) const31{32return frontend.get_IMU_rate();33}3435bool AP_ExternalAHRS_backend::option_is_set(AP_ExternalAHRS::OPTIONS option) const36{37return frontend.option_is_set(option);38}3940bool AP_ExternalAHRS_backend::in_fly_forward(void) const41{42return AP::ahrs().get_fly_forward();43}4445#endif // AP_EXTERNAL_AHRS_ENABLED46474849