From dca03168e9c1850c83381766cf8aa521d6966d51 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Thu, 26 Sep 2024 14:24:41 +0900 Subject: [PATCH] AP_Mount: Siyi sends min max temp as named floats --- libraries/AP_Mount/AP_Mount_Siyi.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libraries/AP_Mount/AP_Mount_Siyi.cpp b/libraries/AP_Mount/AP_Mount_Siyi.cpp index 1c3c8cf8316d9..40af169e1cba7 100644 --- a/libraries/AP_Mount/AP_Mount_Siyi.cpp +++ b/libraries/AP_Mount/AP_Mount_Siyi.cpp @@ -565,6 +565,12 @@ void AP_Mount_Siyi::process_packet() _thermal.max_pos.y = UINT16_VALUE(_msg_buff[_msg_buff_data_start+7], _msg_buff[_msg_buff_data_start+6]); _thermal.min_pos.x = UINT16_VALUE(_msg_buff[_msg_buff_data_start+9], _msg_buff[_msg_buff_data_start+8]); _thermal.min_pos.y = UINT16_VALUE(_msg_buff[_msg_buff_data_start+11], _msg_buff[_msg_buff_data_start+10]); + + // send min and max temp to GCS using NAMED_VALUE_FLOAT + gcs().send_named_float("ThermMax", (float)_thermal.max_C); + gcs().send_named_float("ThermMaxX", (float)_thermal.max_pos.x); + gcs().send_named_float("ThermMaxY", (float)_thermal.max_pos.y); + gcs().send_named_float("ThermMin", (float)_thermal.min_C); break; } #endif