From a5f5b4349c94bddd47768c46a9122c5ef1d8f254 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 28 Mar 2019 17:45:53 +1100 Subject: [PATCH] AP_Logger: add a Write_Rally method --- libraries/AP_Logger/AP_Logger.cpp | 5 +++++ libraries/AP_Logger/AP_Logger.h | 1 + 2 files changed, 6 insertions(+) diff --git a/libraries/AP_Logger/AP_Logger.cpp b/libraries/AP_Logger/AP_Logger.cpp index aa12bd40e7..6ea8ad4dc8 100644 --- a/libraries/AP_Logger/AP_Logger.cpp +++ b/libraries/AP_Logger/AP_Logger.cpp @@ -703,6 +703,11 @@ void AP_Logger::Write_RallyPoint(uint8_t total, FOR_EACH_BACKEND(Write_RallyPoint(total, sequence, rally_point)); } +void AP_Logger::Write_Rally() +{ + FOR_EACH_BACKEND(Write_Rally()); +} + uint32_t AP_Logger::num_dropped() const { if (_next_backend == 0) { diff --git a/libraries/AP_Logger/AP_Logger.h b/libraries/AP_Logger/AP_Logger.h index c94b45f35c..6b832cd782 100644 --- a/libraries/AP_Logger/AP_Logger.h +++ b/libraries/AP_Logger/AP_Logger.h @@ -236,6 +236,7 @@ public: void Write_RCIN(void); void Write_RCOUT(void); void Write_RSSI(); + void Write_Rally(); void Write_Baro(uint64_t time_us=0); void Write_Power(void); void Write_AHRS2(AP_AHRS &ahrs);