APM:Libraries
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
SITL::Gripper_Servo Class Reference

#include <SIM_Gripper_Servo.h>

Collaboration diagram for SITL::Gripper_Servo:
[legend]

Public Member Functions

 Gripper_Servo (const uint8_t _gripper_servo)
 
void update (const struct Aircraft::sitl_input &input)
 
float payload_mass () const
 
void set_aircraft (Aircraft *_aircraft)
 

Public Attributes

const uint8_t gripper_servo
 

Private Member Functions

bool should_report ()
 

Private Attributes

Aircraftaircraft
 
const uint32_t report_interval = 1000000
 
uint64_t last_report_us
 
const float gap = 30
 
float position
 
float position_slew_rate = 35
 
float reported_position = -1
 
uint64_t last_update_us
 
const float string_length = 2.0f
 
float load_mass = 0.0f
 

Detailed Description

Definition at line 25 of file SIM_Gripper_Servo.h.

Constructor & Destructor Documentation

◆ Gripper_Servo()

SITL::Gripper_Servo::Gripper_Servo ( const uint8_t  _gripper_servo)
inline

Definition at line 29 of file SIM_Gripper_Servo.h.

Here is the call graph for this function:

Member Function Documentation

◆ payload_mass()

float Gripper_Servo::payload_mass ( ) const

Definition at line 75 of file SIM_Gripper_Servo.cpp.

Referenced by Gripper_Servo(), and SITL::MultiCopter::gross_mass().

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

◆ set_aircraft()

void SITL::Gripper_Servo::set_aircraft ( Aircraft _aircraft)
inline

Definition at line 38 of file SIM_Gripper_Servo.h.

Referenced by SITL::MultiCopter::MultiCopter().

Here is the caller graph for this function:

◆ should_report()

bool Gripper_Servo::should_report ( )
private

Definition at line 61 of file SIM_Gripper_Servo.cpp.

Referenced by update().

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

◆ update()

void Gripper_Servo::update ( const struct Aircraft::sitl_input input)

Definition at line 27 of file SIM_Gripper_Servo.cpp.

Referenced by Gripper_Servo(), and SITL::MultiCopter::update().

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

Member Data Documentation

◆ aircraft

Aircraft* SITL::Gripper_Servo::aircraft
private

Definition at line 42 of file SIM_Gripper_Servo.h.

Referenced by payload_mass(), set_aircraft(), and update().

◆ gap

const float SITL::Gripper_Servo::gap = 30
private

Definition at line 47 of file SIM_Gripper_Servo.h.

Referenced by update().

◆ gripper_servo

const uint8_t SITL::Gripper_Servo::gripper_servo

Definition at line 27 of file SIM_Gripper_Servo.h.

Referenced by update().

◆ last_report_us

uint64_t SITL::Gripper_Servo::last_report_us
private

Definition at line 45 of file SIM_Gripper_Servo.h.

Referenced by should_report(), and update().

◆ last_update_us

uint64_t SITL::Gripper_Servo::last_update_us
private

Definition at line 53 of file SIM_Gripper_Servo.h.

Referenced by update().

◆ load_mass

float SITL::Gripper_Servo::load_mass = 0.0f
private

Definition at line 59 of file SIM_Gripper_Servo.h.

Referenced by payload_mass(), and update().

◆ position

float SITL::Gripper_Servo::position
private

Definition at line 49 of file SIM_Gripper_Servo.h.

Referenced by should_report(), and update().

◆ position_slew_rate

float SITL::Gripper_Servo::position_slew_rate = 35
private

Definition at line 50 of file SIM_Gripper_Servo.h.

Referenced by update().

◆ report_interval

const uint32_t SITL::Gripper_Servo::report_interval = 1000000
private

Definition at line 44 of file SIM_Gripper_Servo.h.

Referenced by should_report().

◆ reported_position

float SITL::Gripper_Servo::reported_position = -1
private

Definition at line 51 of file SIM_Gripper_Servo.h.

Referenced by should_report(), and update().

◆ string_length

const float SITL::Gripper_Servo::string_length = 2.0f
private

Definition at line 58 of file SIM_Gripper_Servo.h.

Referenced by payload_mass().


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