Merge pull request #11299 from daleckystepan/vtx-start-bit
[betaflight.git] / src / main / sensors / current_ids.h
blob418318c05161abae12f67b8f82a41a7d0f9ce2d0
1 /*
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)
8 * any later version.
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/>.
21 #pragma once
24 // fixed ids, current can be measured at many different places, these identifiers are the ones we support or would consider supporting.
27 typedef enum {
28 CURRENT_METER_ID_NONE = 0,
30 CURRENT_METER_ID_BATTERY_1 = 10, // 10-19 for battery meters
31 CURRENT_METER_ID_BATTERY_2,
32 //..
33 CURRENT_METER_ID_BATTERY_10 = 19,
35 CURRENT_METER_ID_5V_1 = 20, // 20-29 for 5V meters
36 CURRENT_METER_ID_5V_2,
37 //..
38 CURRENT_METER_ID_5V_10 = 29,
40 CURRENT_METER_ID_9V_1 = 30, // 30-39 for 9V meters
41 CURRENT_METER_ID_9V_2,
42 //..
43 CURRENT_METER_ID_9V_10 = 39,
45 CURRENT_METER_ID_12V_1 = 40, // 40-49 for 12V meters
46 CURRENT_METER_ID_12V_2,
47 //..
48 CURRENT_METER_ID_12V_10 = 49,
50 CURRENT_METER_ID_ESC_COMBINED_1 = 50, // 50-59 for ESC combined (it's doubtful an FC would ever expose 51-59 however)
51 // ...
52 CURRENT_METER_ID_ESC_COMBINED_10 = 59,
54 CURRENT_METER_ID_ESC_MOTOR_1 = 60, // 60-79 for ESC motors (20 motors)
55 CURRENT_METER_ID_ESC_MOTOR_2,
56 CURRENT_METER_ID_ESC_MOTOR_3,
57 CURRENT_METER_ID_ESC_MOTOR_4,
58 CURRENT_METER_ID_ESC_MOTOR_5,
59 CURRENT_METER_ID_ESC_MOTOR_6,
60 CURRENT_METER_ID_ESC_MOTOR_7,
61 CURRENT_METER_ID_ESC_MOTOR_8,
62 CURRENT_METER_ID_ESC_MOTOR_9,
63 CURRENT_METER_ID_ESC_MOTOR_10,
64 CURRENT_METER_ID_ESC_MOTOR_11,
65 CURRENT_METER_ID_ESC_MOTOR_12,
66 //...
67 CURRENT_METER_ID_ESC_MOTOR_20 = 79,
69 CURRENT_METER_ID_VIRTUAL_1 = 80, // 80-89 for virtual meters
70 CURRENT_METER_ID_VIRTUAL_2,
72 CURRENT_METER_ID_MSP_1 = 90, // 90-99 for MSP meters
73 CURRENT_METER_ID_MSP_2,
75 } currentMeterId_e;