AP_Mount: add access for primary instance

This commit is contained in:
Randy Mackay 2022-09-06 10:18:38 +09:00
parent 76096899ac
commit 73d817b985

View File

@ -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;