Skip to content

Commit d86e42d

Browse files
SRV_Channel: create auxfunction for lights and video switcher
1 parent 84ca39a commit d86e42d

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

libraries/SRV_Channel/SRV_Channel.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ const AP_Param::GroupInfo SRV_Channel::var_info[] = {
162162
// @Values{Plane, Copter}: 168:Motor21,169:Motor22,170:Motor23,171:Motor24
163163
// @Values{Plane, Copter}: 172:Motor25,173:Motor26,174:Motor27,175:Motor28
164164
// @Values{Plane, Copter}: 176:Motor29,177:Motor30,178:Motor31,179:Motor32
165+
// @Values: 180:CameraZoom
166+
// @Values{Sub}: 181:Lights1,182:Lights2
167+
// @Values{Sub}: 183:VideoSwitch
165168
// @User: Standard
166169
// @RebootRequired: True
167170
AP_GROUPINFO("FUNCTION", 5, SRV_Channel, function, 0),

libraries/SRV_Channel/SRV_Channel.h

+3
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ class SRV_Channel {
210210
k_motor31 = 178,
211211
k_motor32 = 179,
212212
k_cam_zoom = 180,
213+
k_lights1 = 181,
214+
k_lights2 = 182,
215+
k_video_switch = 183,
213216
k_nr_aux_servo_functions ///< This must be the last enum value (only add new values _before_ this one)
214217
} Function;
215218

libraries/SRV_Channel/SRV_Channel_aux.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ void SRV_Channel::aux_servo_function_setup(void)
202202
break;
203203
case k_cam_zoom:
204204
case k_cam_focus:
205+
case k_lights1:
206+
case k_lights2:
207+
case k_video_switch:
205208
set_range(1000);
206209
break;
207210
default:

0 commit comments

Comments
 (0)