Set blackbox file handler to NULL after closing file
[inav.git] / src / main / msp / msp_protocol_v2_common.h
blobe778a1808c975c4b44c95c68c43f739256abd20e
1 /*
2 * This file is part of INAV
4 * INAV 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 * INAV 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/>.
18 #define MSP2_COMMON_TZ 0x1001 //out message Gets the TZ offset for the local time (returns: minutes(i16))
19 #define MSP2_COMMON_SET_TZ 0x1002 //in message Sets the TZ offset for the local time (args: minutes(i16))
20 #define MSP2_COMMON_SETTING 0x1003 //in/out message Returns the value for a setting
21 #define MSP2_COMMON_SET_SETTING 0x1004 //in message Sets the value for a setting
23 #define MSP2_COMMON_MOTOR_MIXER 0x1005
24 #define MSP2_COMMON_SET_MOTOR_MIXER 0x1006
26 #define MSP2_COMMON_SETTING_INFO 0x1007 //in/out message Returns info about a setting (PG, type, flags, min/max, etc..).
27 #define MSP2_COMMON_PG_LIST 0x1008 //in/out message Returns a list of the PG ids used by the settings
29 #define MSP2_COMMON_SERIAL_CONFIG 0x1009
30 #define MSP2_COMMON_SET_SERIAL_CONFIG 0x100A
32 // radar commands
33 #define MSP2_COMMON_SET_RADAR_POS 0x100B //SET radar position information
34 #define MSP2_COMMON_SET_RADAR_ITD 0x100C //SET radar information to display
36 #define MSP2_BETAFLIGHT_BIND 0x3000