From 55959bcc9f443da56a84e0ecdc6d34694b4ada2e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 19 Dec 2024 21:58:26 +1100 Subject: [PATCH] Plane: log whether throttle is suppressed or not --- ArduPlane/Log.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduPlane/Log.cpp b/ArduPlane/Log.cpp index e01a82fe10..6cd2efe621 100644 --- a/ArduPlane/Log.cpp +++ b/ArduPlane/Log.cpp @@ -215,6 +215,7 @@ public: CRASHED = 1U<<2, // vehicle believes itself to be crashed STILL = 1U<<3, // vehicle is not moving on any axis IMPACT = 1U<<4, // vehicle has suffered some sort of impact + THROTTLE_SUPPRESSED = 1U<<5, // throttle is suppressed }; void set(Bit bit, bool new_value) { @@ -247,6 +248,7 @@ void Plane::Log_Write_Status() status.set(LogStatus::Bit::CRASHED, crash_state.is_crashed); status.set(LogStatus::Bit::STILL, AP::ins().is_still()); status.set(LogStatus::Bit::IMPACT, crash_state.impact_detected); + status.set(LogStatus::Bit::THROTTLE_SUPPRESSED, throttle_suppressed); const struct log_Status pkt { LOG_PACKET_HEADER_INIT(LOG_STATUS_MSG),