From d9818ae1abfef10caf23c4ae245bd8faae2e7e8a Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 4 Sep 2023 13:52:20 +1000 Subject: [PATCH] SITL: add simulation instructions for TSYS03 sensor --- libraries/SITL/SIM_Temperature_TSYS03.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/libraries/SITL/SIM_Temperature_TSYS03.h b/libraries/SITL/SIM_Temperature_TSYS03.h index 3963df7baf..02d4c848e8 100644 --- a/libraries/SITL/SIM_Temperature_TSYS03.h +++ b/libraries/SITL/SIM_Temperature_TSYS03.h @@ -7,6 +7,20 @@ /* Simulator for the TSYS03 temperature sensor +./Tools/autotest/sim_vehicle.py --gdb --debug -v ArduCopter -f Callisto -A --speedup=1 +param set TEMP1_TYPE 4 +param fetch +param set TEMP1_BUS 2 +param set TEMP1_SRC 3 +param set TEMP1_SRC_ID 1 +graph BATTERY_STATUS.temperature*0.01 +reboot + +arm throttle +rc 3 2000 + +fly around, check BAT[0].temperature + */ namespace SITL {