mirror of https://github.com/ArduPilot/ardupilot
AP_Scripting: Add mcu_voltage
Add analog:mcu_voltage() to get a reading of the mcu voltage
This commit is contained in:
parent
e9cdc46f55
commit
0ddaae5cb6
|
@ -1942,6 +1942,10 @@ analog = {}
|
||||||
---@return number -- MCU temperature
|
---@return number -- MCU temperature
|
||||||
function analog:mcu_temperature() end
|
function analog:mcu_temperature() end
|
||||||
|
|
||||||
|
-- return The current MCU voltage
|
||||||
|
---@return number -- MCU voltage
|
||||||
|
function analog:mcu_voltage() end
|
||||||
|
|
||||||
-- desc
|
-- desc
|
||||||
---@return AP_HAL__AnalogSource_ud|nil
|
---@return AP_HAL__AnalogSource_ud|nil
|
||||||
function analog:channel() end
|
function analog:channel() end
|
||||||
|
|
|
@ -647,6 +647,8 @@ singleton hal.analogin literal
|
||||||
singleton hal.analogin method channel AP_HAL::AnalogSource ANALOG_INPUT_NONE'literal
|
singleton hal.analogin method channel AP_HAL::AnalogSource ANALOG_INPUT_NONE'literal
|
||||||
singleton hal.analogin method mcu_temperature float
|
singleton hal.analogin method mcu_temperature float
|
||||||
singleton hal.analogin method mcu_temperature depends HAL_WITH_MCU_MONITORING
|
singleton hal.analogin method mcu_temperature depends HAL_WITH_MCU_MONITORING
|
||||||
|
singleton hal.analogin method mcu_voltage float
|
||||||
|
singleton hal.analogin method mcu_voltage depends HAL_WITH_MCU_MONITORING
|
||||||
|
|
||||||
include AP_Motors/AP_MotorsMatrix_Scripting_Dynamic.h depends APM_BUILD_TYPE(APM_BUILD_ArduPlane)||APM_BUILD_COPTER_OR_HELI
|
include AP_Motors/AP_MotorsMatrix_Scripting_Dynamic.h depends APM_BUILD_TYPE(APM_BUILD_ArduPlane)||APM_BUILD_COPTER_OR_HELI
|
||||||
singleton AP_MotorsMatrix_Scripting_Dynamic depends APM_BUILD_TYPE(APM_BUILD_ArduPlane)||APM_BUILD_COPTER_OR_HELI
|
singleton AP_MotorsMatrix_Scripting_Dynamic depends APM_BUILD_TYPE(APM_BUILD_ArduPlane)||APM_BUILD_COPTER_OR_HELI
|
||||||
|
|
Loading…
Reference in New Issue