[SITL] Enable telemetry: LTM and MAVLink (#8940)
[inav.git] / src / main / drivers / logging_codes.h
blob7f04c5ab25df426437135d1b9f47dbc0db2ebd79
1 /*
2 * This file is part of Cleanflight.
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 Cleanflight. If not, see <http://www.gnu.org/licenses/>.
18 #pragma once
20 typedef enum {
21 BOOT_EVENT_FLAGS_NONE = 0,
22 BOOT_EVENT_FLAGS_WARNING = 1 << 0,
23 BOOT_EVENT_FLAGS_ERROR = 1 << 1,
25 BOOT_EVENT_FLAGS_PARAM16 = 1 << 14,
26 BOOT_EVENT_FLAGS_PARAM32 = 1 << 15
27 } bootLogFlags_e;
29 typedef enum {
30 BOOT_EVENT_CONFIG_LOADED = 0,
31 BOOT_EVENT_SYSTEM_INIT_DONE = 1,
32 BOOT_EVENT_PWM_INIT_DONE = 2,
33 BOOT_EVENT_EXTRA_BOOT_DELAY = 3,
34 BOOT_EVENT_SENSOR_INIT_DONE = 4,
35 BOOT_EVENT_GPS_INIT_DONE = 5,
36 BOOT_EVENT_LEDSTRIP_INIT_DONE = 6,
37 BOOT_EVENT_TELEMETRY_INIT_DONE = 7,
38 BOOT_EVENT_SYSTEM_READY = 8,
39 BOOT_EVENT_GYRO_DETECTION = 9,
40 BOOT_EVENT_ACC_DETECTION = 10,
41 BOOT_EVENT_BARO_DETECTION = 11,
42 BOOT_EVENT_MAG_DETECTION = 12,
43 BOOT_EVENT_RANGEFINDER_DETECTION = 13,
44 BOOT_EVENT_MAG_INIT_FAILED = 14,
45 BOOT_EVENT_HMC5883L_READ_OK_COUNT = 15,
46 BOOT_EVENT_HMC5883L_READ_FAILED = 16,
47 BOOT_EVENT_HMC5883L_SATURATION = 17,
48 BOOT_EVENT_TIMER_CH_SKIPPED = 18, // 1 - MAX_MOTORS exceeded, 2 - MAX_SERVOS exceeded, 3 - feature clash
49 BOOT_EVENT_TIMER_CH_MAPPED = 19, // 0 - PPM, 1 - PWM, 2 - MOTOR, 3 - SERVO
50 BOOT_EVENT_PITOT_DETECTION = 20,
51 BOOT_EVENT_TEMP_SENSOR_DETECTION = 21,
52 BOOT_EVENT_1WIRE_DETECTION = 22,
53 BOOT_EVENT_HARDWARE_IO_CONFLICT = 23, // Hardware IO resource conflict, parameters: #1 - current owner, #2 - requested owner
54 BOOT_EVENT_OPFLOW_DETECTION = 24,
56 BOOT_EVENT_CODE_COUNT
57 } bootLogEventCode_e;