Skip to content

Commit

Permalink
AP_Mount: add virtual signature for gmb_att_update
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehines committed Jul 25, 2016
1 parent 433d4a8 commit 12d41cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/AP_Mount/AP_Mount.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ class AP_Mount
// update - give mount opportunity to update servos. should be called at 10hz or higher
void update(uint8_t mount_sysid, AP_SerialManager& serial_manager);;

// used for gimbals that need to read INS data at configurable rate
void gmb_att_update();

// 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;
Expand Down
3 changes: 3 additions & 0 deletions libraries/AP_Mount/AP_Mount_Backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class AP_Mount_Backend
// update mount position - should be called periodically
virtual void update() = 0;

// used for gimbals that need to read INS data at configurable rate
virtual void gmb_att_update() {}

// has_pan_control - returns true if this mount can control it's pan (required for multicopters)
virtual bool has_pan_control() const = 0;

Expand Down

0 comments on commit 12d41cf

Please sign in to comment.