vtx: fix VTX_SETTINGS_POWER_COUNT and add dummy entries to saPowerNames
[inav.git] / src / main / io / headtracker_msp.h
blobedcfb465874e434b1e6d0f71e3f7d971c97b8de0
1 /*
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/>.
19 #pragma once
21 #include <platform.h>
23 #if (defined(USE_HEADTRACKER_MSP) && defined(USE_HEADTRACKER))
25 #include <stdint.h>
26 #include <unistd.h>
28 #include "drivers/headtracker_common.h"
30 typedef struct headtrackerMspMessage_s {
31 uint8_t version; // 0
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);
44 #endif