/*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*/1415//16// Mavlink GPS driver which accepts gps position data from an external17// companion computer18//19#pragma once2021#include "AP_GPS_config.h"2223#if AP_GPS_MAV_ENABLED2425#include <AP_HAL/AP_HAL_Boards.h>2627#include "AP_GPS.h"28#include "GPS_Backend.h"2930class AP_GPS_MAV : public AP_GPS_Backend {31public:3233using AP_GPS_Backend::AP_GPS_Backend;3435bool read() override;3637static bool _detect(struct MAV_detect_state &state, uint8_t data);3839void handle_msg(const mavlink_message_t &msg) override;4041const char *name() const override { return "MAV"; }4243private:44bool _new_data;45uint32_t first_week;46JitterCorrection jitter{2000};47};4849#endif // AP_GPS_MAV_ENABLED505152