constrain fastA2I to [0-9] (vice [0-9A])
[inav.git] / src / main / msp / msp_protocol_v2_sensor.h
blobd913723be7db75071439559a6cd84d8c3b251857
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_IS_SENSOR_MESSAGE(x) ((x) >= 0x1F00 && (x) <= 0x1FFF)
20 #define MSP2_SENSOR_RANGEFINDER 0x1F01
21 #define MSP2_SENSOR_OPTIC_FLOW 0x1F02
22 #define MSP2_SENSOR_GPS 0x1F03
23 #define MSP2_SENSOR_COMPASS 0x1F04
24 #define MSP2_SENSOR_BAROMETER 0x1F05
25 #define MSP2_SENSOR_AIRSPEED 0x1F06