vtx: fix VTX_SETTINGS_POWER_COUNT and add dummy entries to saPowerNames
[inav.git] / src / main / config / parameter_group_ids.h
blobb4062201c72cedfe6f9793c8f01e360937f97544
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 // FC configuration
19 #define PG_CF_START 1
20 #define PG_FAILSAFE_CONFIG 1
21 #define PG_BOARD_ALIGNMENT 2
22 // #define PG_GIMBAL_CONFIG 3 Not used since 2.0
23 #define PG_MOTOR_MIXER 4
24 #define PG_BLACKBOX_CONFIG 5
25 #define PG_MOTOR_CONFIG 6
26 //#define PG_SENSOR_SELECTION_CONFIG 7 -- NOT USED in INAV
27 //#define PG_SENSOR_ALIGNMENT_CONFIG 8 -- NOT USED in INAV
28 //#define PG_SENSOR_TRIMS 9 -- NOT USED in INAV
29 #define PG_GYRO_CONFIG 10
30 #define PG_BATTERY_PROFILES 11
31 #define PG_CONTROL_RATE_PROFILES 12
32 #define PG_SERIAL_CONFIG 13
33 #define PG_PID_PROFILE 14
34 //#define PG_GTUNE_CONFIG 15
35 #define PG_ARMING_CONFIG 16
36 //#define PG_TRANSPONDER_CONFIG 17
37 #define PG_SYSTEM_CONFIG 18
38 #define PG_FEATURE_CONFIG 19
39 #define PG_MIXER_PROFILE 20
40 // #define PG_SERVO_MIXER 21
41 #define PG_IMU_CONFIG 22
42 //#define PG_PROFILE_SELECTION 23
43 #define PG_RX_CONFIG 24
44 #define PG_RC_CONTROLS_CONFIG 25
45 #define PG_REVERSIBLE_MOTORS_CONFIG 26
46 #define PG_LED_STRIP_CONFIG 27
47 //#define PG_COLOR_CONFIG 28
48 //#define PG_AIRPLANE_ALT_HOLD_CONFIG 29
49 #define PG_GPS_CONFIG 30
50 #define PG_TELEMETRY_CONFIG 31
51 //#define PG_FRSKY_TELEMETRY_CONFIG 32
52 //#define PG_HOTT_TELEMETRY_CONFIG 33
53 //#define PG_NAVIGATION_CONFIG 34
54 #define PG_ACCELEROMETER_CONFIG 35
55 //#define PG_RATE_PROFILE_SELECTION 36
56 //#define PG_ADJUSTMENT_PROFILE 37
57 #define PG_ADJUSTMENT_RANGE_CONFIG 37
58 #define PG_BAROMETER_CONFIG 38
59 //#define PG_THROTTLE_CORRECTION_CONFIG 39
60 #define PG_COMPASS_CONFIG 40
61 #define PG_MODE_ACTIVATION_PROFILE 41
62 //#define PG_SERVO_PROFILE 42
63 #define PG_SERVO_PARAMS 42
64 //#define PG_RX_FAILSAFE_CHANNEL_CONFIG 43
65 #define PG_RX_CHANNEL_RANGE_CONFIG 44
66 #define PG_BATTERY_METERS_CONFIG 45
67 //#define PG_MODE_COLOR_CONFIG 45
68 //#define PG_SPECIAL_COLOR_CONFIG 46
69 //#define PG_PILOT_CONFIG 47
70 //#define PG_MSP_SERVER_CONFIG 48
71 //#define PG_VOLTAGE_METER_CONFIG 49
72 //#define PG_AMPERAGE_METER_CONFIG 50
73 //#define PG_DEBUG_CONFIG 51
74 #define PG_SERVO_CONFIG 52
75 //#define PG_IBUS_TELEMETRY_CONFIG 53
76 #define PG_VTX_CONFIG 54
77 // #define PG_ELERES_CONFIG 55
78 #define PG_TEMP_SENSOR_CONFIG 56
79 #define PG_CF_END 56
81 // Driver configuration
82 //#define PG_DRIVER_PWM_RX_CONFIG 100
83 //#define PG_DRIVER_FLASHCHIP_CONFIG 101
85 // cleanflight v2 specific parameter group ids start at 256
86 #define PG_VTX_SETTINGS_CONFIG 259
88 // INAV specific parameter group ids start at 1000
89 #define PG_INAV_START 1000
90 #define PG_PITOTMETER_CONFIG 1000
91 #define PG_POSITION_ESTIMATION_CONFIG 1001
92 #define PG_NAV_CONFIG 1002
93 #define PG_MODE_ACTIVATION_OPERATOR_CONFIG 1003
94 #define PG_OSD_CONFIG 1004
95 #define PG_BEEPER_CONFIG 1005
96 #define PG_RANGEFINDER_CONFIG 1006
97 #define PG_WAYPOINT_MISSION_STORAGE 1007
98 #define PG_PID_AUTOTUNE_CONFIG 1008
99 #define PG_STATS_CONFIG 1009
100 #define PG_ADC_CHANNEL_CONFIG 1010
101 #define PG_TIME_CONFIG 1011
102 #define PG_OPFLOW_CONFIG 1012
103 #define PG_DISPLAY_CONFIG 1013
104 #define PG_LIGHTS_CONFIG 1014
105 #define PG_PINIOBOX_CONFIG 1015
106 #define PG_LOGIC_CONDITIONS 1016
107 #define PG_LOG_CONFIG 1017
108 #define PG_RCDEVICE_CONFIG 1018
109 #define PG_GENERAL_SETTINGS 1019
110 #define PG_GLOBAL_FUNCTIONS 1020
111 #define PG_ESC_SENSOR_CONFIG 1021
112 #define PG_RPM_FILTER_CONFIG 1022
113 #define PG_GLOBAL_VARIABLE_CONFIG 1023
114 #define PG_SMARTPORT_MASTER_CONFIG 1024
115 #define PG_OSD_LAYOUTS_CONFIG 1025
116 #define PG_SAFE_HOME_CONFIG 1026
117 #define PG_DJI_OSD_CONFIG 1027
118 #define PG_PROGRAMMING_PID 1028
119 #define PG_UNUSED_1 1029
120 #define PG_POWER_LIMITS_CONFIG 1030
121 #define PG_OSD_COMMON_CONFIG 1031
122 #define PG_TIMER_OVERRIDE_CONFIG 1032
123 #define PG_EZ_TUNE 1033
124 #define PG_LEDPIN_CONFIG 1034
125 #define PG_OSD_JOYSTICK_CONFIG 1035
126 #define PG_FW_AUTOLAND_CONFIG 1036
127 #define PG_FW_AUTOLAND_APPROACH_CONFIG 1037
128 #define PG_OSD_CUSTOM_ELEMENTS_CONFIG 1038
129 #define PG_GIMBAL_CONFIG 1039
130 #define PG_GIMBAL_SERIAL_CONFIG 1040
131 #define PG_HEADTRACKER_CONFIG 1041
132 #define PG_INAV_END PG_HEADTRACKER_CONFIG
134 // OSD configuration (subject to change)
135 //#define PG_OSD_FONT_CONFIG 2047
136 //#define PG_OSD_VIDEO_CONFIG 2046
137 //#define PG_OSD_ELEMENT_CONFIG 2045
139 // 4095 is currently the highest number that can be used for a PGN due to the top 4 bits of the 16 bit value being reserved for the version when the PG is stored in an EEPROM.
140 #define PG_RESERVED_FOR_TESTING_1 4095
141 #define PG_RESERVED_FOR_TESTING_2 4094
142 #define PG_RESERVED_FOR_TESTING_3 4093
144 #define PG_ID_INVALID 0
145 #define PG_ID_FIRST PG_CF_START
146 #define PG_ID_LAST PG_INAV_END