Skip to content

Commit

Permalink
AP_Scripting: video-stream-information param index fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Jan 15, 2025
1 parent 64bb0ad commit 135a191
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libraries/AP_Scripting/applets/video-stream-information.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Populate the VIDEO_STREAM_INFORMATION message based on user parameters
--]]

local PARAM_TABLE_KEY = 87
local PARAM_TABLE_KEY = 90
local PARAM_TABLE_PREFIX = "VID1_"

local MAV_SEVERITY = {EMERGENCY=0, ALERT=1, CRITICAL=2, ERROR=3, WARNING=4, NOTICE=5, INFO=6, DEBUG=7}
Expand All @@ -21,10 +21,10 @@ function bind_add_param(name, idx, default_value)
return Parameter(PARAM_TABLE_PREFIX .. name)
end

-- setup script specific parameters
assert(param:add_table(PARAM_TABLE_KEY, PARAM_TABLE_PREFIX, 15), 'could not add param table')
-- setup script specific parameters
assert(param:add_table(PARAM_TABLE_KEY, PARAM_TABLE_PREFIX, 15), 'could not add param table')

--[[
--[[
// @Param: VID1_CAMMODEL
// @DisplayName: Camera1 Video Stream Camera Model
// @Description: Video stream camera model
Expand Down

0 comments on commit 135a191

Please sign in to comment.