From 647150a9f068302c17558037c6619203b8ae38a5 Mon Sep 17 00:00:00 2001 From: Maxim Buzdalov Date: Sun, 18 Feb 2024 12:15:33 +0000 Subject: [PATCH] AP_ESC_Telem: for RPM, log NaN instead of 0 when there are no measurements --- libraries/AP_ESC_Telem/AP_ESC_Telem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_ESC_Telem/AP_ESC_Telem.cpp b/libraries/AP_ESC_Telem/AP_ESC_Telem.cpp index fdf642f944..4678c9ae9c 100644 --- a/libraries/AP_ESC_Telem/AP_ESC_Telem.cpp +++ b/libraries/AP_ESC_Telem/AP_ESC_Telem.cpp @@ -590,7 +590,7 @@ void AP_ESC_Telem::update() float rpm = AP::logger().quiet_nanf(); get_rpm(i, rpm); - float raw_rpm = 0.0f; + float raw_rpm = AP::logger().quiet_nanf(); get_raw_rpm(i, raw_rpm); // Write ESC status messages