From 73d817b985d06e3c991c545a3991ec625e6e2664 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 6 Sep 2022 10:18:38 +0900 Subject: [PATCH] AP_Mount: add access for primary instance --- libraries/AP_Mount/AP_Mount.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Mount/AP_Mount.h b/libraries/AP_Mount/AP_Mount.h index 47e5dd8a70..b5576aef72 100644 --- a/libraries/AP_Mount/AP_Mount.h +++ b/libraries/AP_Mount/AP_Mount.h @@ -98,6 +98,9 @@ public: // used for gimbals that need to read INS data at full rate void update_fast(); + // return primary instance + uint8_t get_primary() const { return _primary; } + // get_mount_type - returns the type of mount AP_Mount::MountType get_mount_type() const { return get_mount_type(_primary); } AP_Mount::MountType get_mount_type(uint8_t instance) const;