APM:Libraries
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
AP_Gripper_Servo Class Reference

#include <AP_Gripper_Servo.h>

Inheritance diagram for AP_Gripper_Servo:
[legend]
Collaboration diagram for AP_Gripper_Servo:
[legend]

Public Member Functions

 AP_Gripper_Servo (struct AP_Gripper::Backend_Config &_config)
 
void grab () override
 
void release () override
 
bool grabbed () const override
 
bool released () const override
 
bool valid () const
 
- Public Member Functions inherited from AP_Gripper_Backend
 AP_Gripper_Backend (struct AP_Gripper::Backend_Config &_config)
 
void init ()
 
void update ()
 

Protected Member Functions

void init_gripper () override
 
void update_gripper () override
 

Private Member Functions

bool has_state_pwm (const uint16_t pwm) const
 

Private Attributes

uint32_t action_timestamp
 
const uint16_t action_time = 3000
 

Additional Inherited Members

- Protected Attributes inherited from AP_Gripper_Backend
struct AP_Gripper::Backend_Configconfig
 

Detailed Description

Definition at line 21 of file AP_Gripper_Servo.h.

Constructor & Destructor Documentation

◆ AP_Gripper_Servo()

AP_Gripper_Servo::AP_Gripper_Servo ( struct AP_Gripper::Backend_Config _config)
inline

Definition at line 24 of file AP_Gripper_Servo.h.

Here is the call graph for this function:

Member Function Documentation

◆ grab()

void AP_Gripper_Servo::grab ( )
overridevirtual

Implements AP_Gripper_Backend.

Definition at line 11 of file AP_Gripper_Servo.cpp.

Referenced by AP_Gripper_Servo().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ grabbed()

bool AP_Gripper_Servo::grabbed ( ) const
overridevirtual

Implements AP_Gripper_Backend.

Definition at line 51 of file AP_Gripper_Servo.cpp.

Referenced by AP_Gripper_Servo().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ has_state_pwm()

bool AP_Gripper_Servo::has_state_pwm ( const uint16_t  pwm) const
private

Definition at line 25 of file AP_Gripper_Servo.cpp.

Referenced by grabbed(), and released().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_gripper()

void AP_Gripper_Servo::init_gripper ( )
overrideprotectedvirtual

Implements AP_Gripper_Backend.

Definition at line 5 of file AP_Gripper_Servo.cpp.

Referenced by AP_Gripper_Servo().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ release()

void AP_Gripper_Servo::release ( )
overridevirtual

Implements AP_Gripper_Backend.

Definition at line 18 of file AP_Gripper_Servo.cpp.

Referenced by AP_Gripper_Servo(), and init_gripper().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ released()

bool AP_Gripper_Servo::released ( ) const
overridevirtual

Implements AP_Gripper_Backend.

Definition at line 46 of file AP_Gripper_Servo.cpp.

Referenced by AP_Gripper_Servo().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_gripper()

void AP_Gripper_Servo::update_gripper ( )
overrideprotectedvirtual

Reimplemented from AP_Gripper_Backend.

Definition at line 57 of file AP_Gripper_Servo.cpp.

Referenced by AP_Gripper_Servo().

Here is the caller graph for this function:

◆ valid()

bool AP_Gripper_Servo::valid ( ) const
virtual

Reimplemented from AP_Gripper_Backend.

Definition at line 59 of file AP_Gripper_Servo.cpp.

Referenced by AP_Gripper_Servo().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ action_time

const uint16_t AP_Gripper_Servo::action_time = 3000
private

Definition at line 53 of file AP_Gripper_Servo.h.

Referenced by has_state_pwm().

◆ action_timestamp

uint32_t AP_Gripper_Servo::action_timestamp
private

Definition at line 52 of file AP_Gripper_Servo.h.

Referenced by grab(), has_state_pwm(), and release().


The documentation for this class was generated from the following files: