Path: blob/master/libraries/AP_Devo_Telem/AP_Devo_Telem.h
9685 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*/1415#pragma once1617#include <AP_HAL/AP_HAL.h>1819#ifndef AP_DEVO_TELEM_ENABLED20#define AP_DEVO_TELEM_ENABLED 021#endif2223#if AP_DEVO_TELEM_ENABLED24class AP_DEVO_Telem {25public:26//constructor27AP_DEVO_Telem() {}2829/* Do not allow copies */30CLASS_NO_COPY(AP_DEVO_Telem);3132void init();3334private:3536uint32_t gpsDdToDmsFormat(int32_t ddm);3738// tick - main call to send updates to transmitter39void tick(void);4041// send_frames - sends updates down telemetry link42void send_frames();4344AP_HAL::UARTDriver *_port; // UART used to send data to receiver45uint32_t _last_frame_ms;4647};48#endif495051