Skip to content

Commit

Permalink
AP_SCripting: add docs for new temperature sensor bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Sep 19, 2024
1 parent 1306469 commit 247bea1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libraries/AP_Scripting/docs/docs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3120,6 +3120,14 @@ function BattMonitorScript_State_ud:voltage(value) end
---@param value boolean
function BattMonitorScript_State_ud:healthy(value) end

-- The temperature library provides access to information about the currently connected temperature sensors on the vehicle.
temperature = {}

-- Returns the temperature from this sensor in degrees Celsius
---@param instance integer -- temperature instance
---@return number|nil -- temperature if available
function temperature:get_temperature(instance) end

-- The battery library provides access to information about the currently connected batteries on the vehicle.
battery = {}

Expand Down

0 comments on commit 247bea1

Please sign in to comment.