Use the cached value of useDshotTelemetry to ensure consistent runtime use if dshot_b...
[betaflight.git] / src / main / msp / msp_protocol_v2_betaflight.h
blobb039defb71edb6e4fac66c6dbcfd0a22551e395c
1 /*
2 * This file is part of Cleanflight, Betaflight and INAV.
4 * Cleanflight and Betaflight are free software. You can redistribute
5 * this software and/or modify this software under the terms of the
6 * GNU General Public License as published by the Free Software
7 * Foundation, either version 3 of the License, or (at your option)
8 * any later version.
10 * Cleanflight, Betaflight and INAV are distributed in the hope that they
11 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
12 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this software.
18 * If not, see <http://www.gnu.org/licenses/>.
21 #define MSP2_BETAFLIGHT_BIND 0x3000
22 #define MSP2_MOTOR_OUTPUT_REORDERING 0x3001
23 #define MSP2_SET_MOTOR_OUTPUT_REORDERING 0x3002
24 #define MSP2_SEND_DSHOT_COMMAND 0x3003
25 #define MSP2_GET_VTX_DEVICE_STATUS 0x3004
26 #define MSP2_GET_OSD_WARNINGS 0x3005 // returns active OSD warning message text
27 #define MSP2_GET_TEXT 0x3006
28 #define MSP2_SET_TEXT 0x3007
29 #define MSP2_GET_LED_STRIP_CONFIG_VALUES 0x3008
30 #define MSP2_SET_LED_STRIP_CONFIG_VALUES 0x3009
31 #define MSP2_SENSOR_CONFIG_ACTIVE 0x300A
33 // MSP2_SET_TEXT and MSP2_GET_TEXT variable types
34 #define MSP2TEXT_PILOT_NAME 1
35 #define MSP2TEXT_CRAFT_NAME 2
36 #define MSP2TEXT_PID_PROFILE_NAME 3
37 #define MSP2TEXT_RATE_PROFILE_NAME 4
38 #define MSP2TEXT_BUILDKEY 5
39 #define MSP2TEXT_RELEASENAME 6