APM:Libraries
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
AP_ICEngine Class Reference

#include <AP_ICEngine.h>

Collaboration diagram for AP_ICEngine:
[legend]

Public Types

enum  ICE_State {
  ICE_OFF =0, ICE_START_HEIGHT_DELAY =1, ICE_START_DELAY =2, ICE_STARTING =3,
  ICE_RUNNING =4
}
 

Public Member Functions

 AP_ICEngine (const AP_RPM &_rpm, const AP_AHRS &_ahrs)
 
void update (void)
 
bool throttle_override (uint8_t &percent)
 
ICE_State get_state (void) const
 
bool engine_control (float start_control, float cold_start, float height_delay)
 

Static Public Attributes

static const struct AP_Param::GroupInfo var_info []
 

Private Attributes

const AP_RPMrpm
 
const AP_AHRSahrs
 
enum ICE_State state
 
AP_Int8 enable
 
AP_Int8 start_chan
 
AP_Int8 rpm_instance
 
AP_Float starter_time
 
AP_Float starter_delay
 
AP_Int16 pwm_ignition_on
 
AP_Int16 pwm_ignition_off
 
AP_Int16 pwm_starter_on
 
AP_Int16 pwm_starter_off
 
AP_Int32 rpm_threshold
 
uint32_t starter_start_time_ms
 
uint32_t starter_last_run_ms
 
AP_Int8 start_percent
 
float initial_height
 
float height_required
 
bool height_pending:1
 

Detailed Description

Definition at line 24 of file AP_ICEngine.h.

Member Enumeration Documentation

◆ ICE_State

Enumerator
ICE_OFF 
ICE_START_HEIGHT_DELAY 
ICE_START_DELAY 
ICE_STARTING 
ICE_RUNNING 

Definition at line 37 of file AP_ICEngine.h.

Constructor & Destructor Documentation

◆ AP_ICEngine()

AP_ICEngine::AP_ICEngine ( const AP_RPM _rpm,
const AP_AHRS _ahrs 
)

Definition at line 109 of file AP_ICEngine.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ engine_control()

bool AP_ICEngine::engine_control ( float  start_control,
float  cold_start,
float  height_delay 
)

Definition at line 266 of file AP_ICEngine.cpp.

Referenced by get_state().

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

◆ get_state()

ICE_State AP_ICEngine::get_state ( void  ) const
inline

Definition at line 46 of file AP_ICEngine.h.

Here is the call graph for this function:

◆ throttle_override()

bool AP_ICEngine::throttle_override ( uint8_t &  percent)

Definition at line 250 of file AP_ICEngine.cpp.

◆ update()

void AP_ICEngine::update ( void  )

Definition at line 120 of file AP_ICEngine.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ ahrs

const AP_AHRS& AP_ICEngine::ahrs
private

Definition at line 53 of file AP_ICEngine.h.

Referenced by update().

◆ enable

AP_Int8 AP_ICEngine::enable
private

Definition at line 58 of file AP_ICEngine.h.

Referenced by throttle_override(), and update().

◆ height_pending

bool AP_ICEngine::height_pending
private

Definition at line 97 of file AP_ICEngine.h.

Referenced by engine_control(), and update().

◆ height_required

float AP_ICEngine::height_required
private

Definition at line 94 of file AP_ICEngine.h.

Referenced by engine_control(), and update().

◆ initial_height

float AP_ICEngine::initial_height
private

Definition at line 91 of file AP_ICEngine.h.

Referenced by engine_control(), and update().

◆ pwm_ignition_off

AP_Int16 AP_ICEngine::pwm_ignition_off
private

Definition at line 74 of file AP_ICEngine.h.

Referenced by update().

◆ pwm_ignition_on

AP_Int16 AP_ICEngine::pwm_ignition_on
private

Definition at line 73 of file AP_ICEngine.h.

Referenced by update().

◆ pwm_starter_off

AP_Int16 AP_ICEngine::pwm_starter_off
private

Definition at line 76 of file AP_ICEngine.h.

Referenced by update().

◆ pwm_starter_on

AP_Int16 AP_ICEngine::pwm_starter_on
private

Definition at line 75 of file AP_ICEngine.h.

Referenced by update().

◆ rpm

const AP_RPM& AP_ICEngine::rpm
private

Definition at line 52 of file AP_ICEngine.h.

Referenced by update().

◆ rpm_instance

AP_Int8 AP_ICEngine::rpm_instance
private

Definition at line 64 of file AP_ICEngine.h.

Referenced by update().

◆ rpm_threshold

AP_Int32 AP_ICEngine::rpm_threshold
private

Definition at line 79 of file AP_ICEngine.h.

Referenced by update().

◆ start_chan

AP_Int8 AP_ICEngine::start_chan
private

Definition at line 61 of file AP_ICEngine.h.

Referenced by engine_control(), and update().

◆ start_percent

AP_Int8 AP_ICEngine::start_percent
private

Definition at line 88 of file AP_ICEngine.h.

Referenced by throttle_override().

◆ starter_delay

AP_Float AP_ICEngine::starter_delay
private

Definition at line 70 of file AP_ICEngine.h.

Referenced by update().

◆ starter_last_run_ms

uint32_t AP_ICEngine::starter_last_run_ms
private

Definition at line 85 of file AP_ICEngine.h.

Referenced by update().

◆ starter_start_time_ms

uint32_t AP_ICEngine::starter_start_time_ms
private

Definition at line 82 of file AP_ICEngine.h.

Referenced by update().

◆ starter_time

AP_Float AP_ICEngine::starter_time
private

Definition at line 67 of file AP_ICEngine.h.

Referenced by update().

◆ state

enum ICE_State AP_ICEngine::state
private

Definition at line 55 of file AP_ICEngine.h.

Referenced by engine_control(), get_state(), throttle_override(), and update().

◆ var_info

const AP_Param::GroupInfo AP_ICEngine::var_info
static

Definition at line 29 of file AP_ICEngine.h.

Referenced by AP_ICEngine().


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