From 7d3f013695e51fc76f38a71acb8a7686616f23a4 Mon Sep 17 00:00:00 2001 From: Shiv Tyagi Date: Fri, 19 Aug 2022 23:35:17 +0530 Subject: [PATCH] AR_PosControl: add accessor for reversed --- libraries/APM_Control/AR_PosControl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/APM_Control/AR_PosControl.h b/libraries/APM_Control/AR_PosControl.h index 87ed932426..6e57077f04 100644 --- a/libraries/APM_Control/AR_PosControl.h +++ b/libraries/APM_Control/AR_PosControl.h @@ -26,6 +26,9 @@ public: // set reversed void set_reversed(bool reversed) { _reversed = reversed; } + // accessor for _reversed + bool get_reversed() { return _reversed; } + // get limits float get_speed_max() const { return _speed_max; } float get_accel_max() const { return _accel_max; }