From 4fd3008b4e2b2dd5ff896158cd93990cd532c9b8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 14 Apr 2019 06:42:47 +1000 Subject: [PATCH] AP_TECS: log pitch limits --- libraries/AP_TECS/AP_TECS.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/libraries/AP_TECS/AP_TECS.cpp b/libraries/AP_TECS/AP_TECS.cpp index 61868de86f..ce01a15029 100644 --- a/libraries/AP_TECS/AP_TECS.cpp +++ b/libraries/AP_TECS/AP_TECS.cpp @@ -1125,10 +1125,12 @@ void AP_TECS::update_pitch_throttle(int32_t hgt_dem_cm, (double)_TAS_rate_dem, (double)logging.SKE_weighting, _flags_byte); - AP::logger().Write("TEC2", "TimeUS,KErr,PErr,EDelta,LF", "Qffff", - now, - (double)logging.SKE_error, - (double)logging.SPE_error, - (double)logging.SEB_delta, - (double)load_factor); + AP::logger().Write("TEC2", "TimeUS,KErr,PErr,EDelta,LF,PMax,PMin", "Qffffff", + now, + (double)logging.SKE_error, + (double)logging.SPE_error, + (double)logging.SEB_delta, + (double)load_factor, + (double)degrees(_PITCHmaxf), + (double)degrees(_PITCHminf)); }