2 * This file is part of Cleanflight and Betaflight.
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)
10 * Cleanflight and Betaflight 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/>.
24 SENSOR_INDEX_GYRO
= 0,
28 SENSOR_INDEX_RANGEFINDER
,
32 extern uint8_t requestedSensors
[SENSOR_INDEX_COUNT
];
33 extern uint8_t detectedSensors
[SENSOR_INDEX_COUNT
];
35 typedef struct int16_flightDynamicsTrims_s
{
39 int16_t calibrationCompleted
;
40 } flightDynamicsTrims_def_t
;
42 typedef union flightDynamicsTrims_u
{
44 flightDynamicsTrims_def_t values
;
45 } flightDynamicsTrims_t
;
48 SENSOR_GYRO
= 1 << 0, // always present
52 SENSOR_SONAR
= 1 << 4,
53 SENSOR_RANGEFINDER
= 1 << 4,
55 SENSOR_GPSMAG
= 1 << 6