2 * This file is part of INAV.
4 * Cleanflight is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * Cleanflight is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with INAV. If not, see <http://www.gnu.org/licenses/>.
23 #if (defined(USE_HEADTRACKER_MSP) && defined(USE_HEADTRACKER))
28 #include "drivers/headtracker_common.h"
30 typedef struct headtrackerMspMessage_s
{
32 int16_t pan
; // -2048~2047. Scale is min/max angle for gimbal
33 int16_t tilt
; // -2048~2047. Scale is min/max angle for gimbal
34 int16_t roll
; // -2048~2047. Scale is min/max angle for gimbal
35 int16_t sensitivity
; // -16~15. Scale is min/max angle for gimbal
36 } __attribute__((packed
)) headtrackerMspMessage_t
;
38 void mspHeadTrackerInit(void);
40 void mspHeadTrackerReceiverNewData(uint8_t *data
, int dataSize
);
42 headTrackerDevType_e
heatTrackerMspGetDeviceType(const headTrackerDevice_t
*headTrackerDevice
);