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

#include <SIM_Gripper_EPM.h>

Public Member Functions

 Gripper_EPM (const uint8_t _gripper_servo)
 
void update (const struct Aircraft::sitl_input &input)
 

Public Attributes

const uint8_t gripper_servo
 

Private Member Functions

bool should_report ()
 
void update_from_demand (const Aircraft::sitl_input &input)
 
void update_servobased (const struct Aircraft::sitl_input &input)
 
float tesla ()
 

Private Attributes

const uint32_t report_interval = 100000
 
uint64_t last_report_us
 
bool servo_based = true
 
double field_strength
 
double reported_field_strength = -1
 
const float field_strength_slew_rate = 400
 
const float field_decay_rate = 2
 
const float field_degauss_rate = 300
 
uint64_t last_update_us
 
float demand
 

Detailed Description

Definition at line 25 of file SIM_Gripper_EPM.h.

Constructor & Destructor Documentation

◆ Gripper_EPM()

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

Definition at line 29 of file SIM_Gripper_EPM.h.

Here is the call graph for this function:

Member Function Documentation

◆ should_report()

bool Gripper_EPM::should_report ( )
private

Definition at line 80 of file SIM_Gripper_EPM.cpp.

Referenced by update_from_demand().

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

◆ tesla()

float Gripper_EPM::tesla ( )
private

Definition at line 93 of file SIM_Gripper_EPM.cpp.

Referenced by update_from_demand().

Here is the caller graph for this function:

◆ update()

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

Definition at line 72 of file SIM_Gripper_EPM.cpp.

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

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

◆ update_from_demand()

void Gripper_EPM::update_from_demand ( const Aircraft::sitl_input input)
private

Definition at line 40 of file SIM_Gripper_EPM.cpp.

Referenced by update().

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

◆ update_servobased()

void Gripper_EPM::update_servobased ( const struct Aircraft::sitl_input input)
private

Definition at line 28 of file SIM_Gripper_EPM.cpp.

Referenced by update().

Here is the caller graph for this function:

Member Data Documentation

◆ demand

float SITL::Gripper_EPM::demand
private

Definition at line 60 of file SIM_Gripper_EPM.h.

Referenced by update_from_demand(), and update_servobased().

◆ field_decay_rate

const float SITL::Gripper_EPM::field_decay_rate = 2
private

Definition at line 48 of file SIM_Gripper_EPM.h.

Referenced by update_from_demand().

◆ field_degauss_rate

const float SITL::Gripper_EPM::field_degauss_rate = 300
private

Definition at line 49 of file SIM_Gripper_EPM.h.

Referenced by update_from_demand().

◆ field_strength

double SITL::Gripper_EPM::field_strength
private

Definition at line 43 of file SIM_Gripper_EPM.h.

Referenced by should_report(), tesla(), and update_from_demand().

◆ field_strength_slew_rate

const float SITL::Gripper_EPM::field_strength_slew_rate = 400
private

Definition at line 47 of file SIM_Gripper_EPM.h.

Referenced by update_from_demand().

◆ gripper_servo

const uint8_t SITL::Gripper_EPM::gripper_servo

Definition at line 27 of file SIM_Gripper_EPM.h.

Referenced by update_servobased().

◆ last_report_us

uint64_t SITL::Gripper_EPM::last_report_us
private

Definition at line 39 of file SIM_Gripper_EPM.h.

Referenced by should_report(), and update_from_demand().

◆ last_update_us

uint64_t SITL::Gripper_EPM::last_update_us
private

Definition at line 51 of file SIM_Gripper_EPM.h.

Referenced by update_from_demand().

◆ report_interval

const uint32_t SITL::Gripper_EPM::report_interval = 100000
private

Definition at line 38 of file SIM_Gripper_EPM.h.

Referenced by should_report().

◆ reported_field_strength

double SITL::Gripper_EPM::reported_field_strength = -1
private

Definition at line 44 of file SIM_Gripper_EPM.h.

Referenced by should_report(), and update_from_demand().

◆ servo_based

bool SITL::Gripper_EPM::servo_based = true
private

Definition at line 41 of file SIM_Gripper_EPM.h.

Referenced by update_servobased().


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