From 892509b66c13716afbc73c7e9b0174451ec81d6e Mon Sep 17 00:00:00 2001 From: Henry Wurzburg Date: Fri, 28 Jun 2024 15:41:03 -0500 Subject: [PATCH] 4.6:add DroneCAN temp sensor --- common/source/docs/common-temperature-sensor.rst | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/common/source/docs/common-temperature-sensor.rst b/common/source/docs/common-temperature-sensor.rst index 046fbcb7d7..02fa58ddcb 100644 --- a/common/source/docs/common-temperature-sensor.rst +++ b/common/source/docs/common-temperature-sensor.rst @@ -17,7 +17,9 @@ ArduPilot supports up to nine individual temperature sensors: .. image:: ../../../images/temperature-sensor.jpg :target: ../_images/temperature-sensor.jpg -ArduPilot already has numerous possible sources for temperature reports: ESCs, Smart Batteries, Motor EFI and these independent sensors can be used to replace those device's temperature reports that already exist in ArduPilot. They can also just be logged. +In addition, analog temperature monitors and DroneCAN based sensors can be used. + +ArduPilot already has numerous possible sources for temperature reports: ESCs, Smart Batteries, Motor EFI and these independent sensors can be used to replace those devices temperature reports which already exist in ArduPilot. They can also just be logged. I2C Sensor Setup ================ @@ -54,6 +56,18 @@ The output voltage vs temperature curve of the sensor can be adjusted to match i - :ref:`TEMP1_A3` = a3 - :ref:`TEMP1_A4` = a4 +DroneCAN Setup +============== + +Make sure the CAN port is setup. (example below for first CAN port using first driver): + +- :ref:`CAN_P1_DRIVER` = 1 (First driver) +- :ref:`CAN_D1_PROTOCOL` = 1 (DroneCAN) + +Then set (examples shown for first sensor): + +- :ref:`TEMP1_TYPE` = 6 (DroneCAN) + Logging =======