4 * This file is part of Cleanflight.
6 * Cleanflight is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * Cleanflight is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
24 LTM_AFRAME
= LTM_FRAME_START
, // Attitude Frame
25 LTM_SFRAME
, // Status Frame
27 LTM_GFRAME
, // GPS Frame
28 LTM_OFRAME
, // Origin Frame
29 LTM_XFRAME
, // Extended information data frame
31 LTM_NFRAME
, // Navigation Frame (inav extension)
35 // payload size does not include the '$T' header, the frame type byte or the checksum byte
36 #define LTM_GFRAME_PAYLOAD_SIZE 14
37 #define LTM_AFRAME_PAYLOAD_SIZE 6
38 #define LTM_SFRAME_PAYLOAD_SIZE 7
39 #define LTM_OFRAME_PAYLOAD_SIZE 14
40 #define LTM_NFRAME_PAYLOAD_SIZE 6
41 #define LTM_XFRAME_PAYLOAD_SIZE 6
43 #define LTM_MAX_PAYLOAD_SIZE 14
44 #define LTM_MAX_MESSAGE_SIZE (LTM_MAX_PAYLOAD_SIZE+4)
68 // INAV specific extensions
73 void initLtmTelemetry(void);
74 void handleLtmTelemetry(void);
75 void checkLtmTelemetryState(void);
77 void freeLtmTelemetryPort(void);
78 void configureLtmTelemetryPort(void);
80 int getLtmFrame(uint8_t *frame
, ltm_frame_e ltmFrameType
);